forked from Skydipper/control-tower
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 687 Bytes
/
Dockerfile
File metadata and controls
30 lines (20 loc) · 687 Bytes
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
FROM node:11.6-alpine
MAINTAINER tiago.garcia@vizzuality.com
ENV NAME control-tower
ENV USER control_tower
RUN apk update && apk upgrade && \
apk add --no-cache --update bash git openssh python alpine-sdk
RUN addgroup $USER && adduser -s /bin/bash -D -G $USER $USER
RUN npm install --unsafe-perm -g grunt-cli bunyan pm2
RUN mkdir -p /opt/$NAME
COPY package.json /opt/$NAME/package.json
RUN cd /opt/$NAME && npm install
COPY entrypoint.sh /opt/$NAME/entrypoint.sh
COPY config /opt/$NAME/config
WORKDIR /opt/$NAME
COPY ./app /opt/$NAME/app
RUN chown -R $USER:$USER /opt/$NAME
# Tell Docker we are going to use this ports
EXPOSE 9000
USER $USER
ENTRYPOINT ["./entrypoint.sh"]