forked from rschumann/rw_adapter_csv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 675 Bytes
/
Dockerfile
File metadata and controls
30 lines (20 loc) · 675 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 mhart/alpine-node:6.2
MAINTAINER raul.requero@vizzuality.com
ENV NAME rw-adapter-csv
ENV USER microservice
RUN apk update && apk upgrade && \
apk add --no-cache --update bash git openssh python build-base
RUN addgroup $USER && adduser -s /bin/bash -D -G $USER $USER
RUN npm install -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 $USER:$USER /opt/$NAME
# Tell Docker we are going to use this ports
EXPOSE 4000
USER $USER
ENTRYPOINT ["./entrypoint.sh"]