-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
73 lines (61 loc) · 1.8 KB
/
Dockerfile
File metadata and controls
73 lines (61 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FROM jameskyburz/graphicsmagick-alpine:v3.0.0 as gm
FROM golang:1.14-alpine3.11 as go
FROM node:12-alpine3.11
LABEL maintainer="James Kyburz james.kyburz@gmail.com"
COPY --from=gm /usr/ /usr/
COPY --from=go /usr/local/go /usr/local/go
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
ENV NPM_CONFIG_LOGLEVEL warn
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
RUN mkdir -p /root/.config
RUN chown -R $USER:$(id -gn $USER) /root/.config
RUN apk --no-cache add \
tzdata \
openssh \
openssl \
bash \
groff \
jq \
git \
g++ \
gcc \
libgcc \
libstdc++ \
linux-headers \
make \
python3 \
python3-dev \
openssl-dev \
curl \
docker \
shellcheck \
libsecret-dev \
the_silver_searcher && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --no-cache --upgrade pip setuptools wheel && \
pip3 install aws-sam-cli && \
pip3 install awscurl && \
pip3 install awscli && \
pip3 install docker-compose && \
npm install npm@latest && \
npm install node-gyp yamljs babel-cli babel-preset-node picture-tube modclean -g && \
npm install serverless@latest -g
RUN curl https://cache.agilebits.com/dist/1P/op/pkg/v0.8.0/op_linux_386_v0.8.0.zip -o op.zip && \
unzip op.zip && \
chmod +x op && \
mv op /usr/bin && \
rm -rf op.zip op.sig
RUN curl https://releases.hashicorp.com/terraform/0.11.10/terraform_0.11.10_linux_amd64.zip -o terraform.zip && \
unzip terraform.zip && \
chmod +x terraform && \
mv terraform /usr/bin && \
rm -rf terraform.zip
RUN curl -o /usr/local/bin/ecs-cli https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest && \
chmod +x /usr/local/bin/ecs-cli
RUN go get github.com/mvdan/sh/cmd/shfmt
RUN go get github.com/tj/node-prune
WORKDIR /usr/src/app
ADD .babelrc ./
ADD .npmrc ./