2016-09-19 18:34:16 +02:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
RUN apk update && apk upgrade
|
|
|
|
|
|
|
|
RUN apk add nodejs
|
|
|
|
|
|
|
|
COPY ["client", "/app/client"]
|
|
|
|
COPY ["server", "/app/server"]
|
|
|
|
|
2016-09-19 20:19:00 +02:00
|
|
|
RUN addgroup -S up1 && adduser -S up1 -G up1
|
|
|
|
|
|
|
|
RUN chown -R up1:up1 /app
|
|
|
|
|
|
|
|
USER up1
|
|
|
|
|
2016-09-19 18:34:16 +02:00
|
|
|
WORKDIR "/app/server"
|
|
|
|
|
|
|
|
RUN npm install
|
|
|
|
|
2016-09-19 20:19:00 +02:00
|
|
|
VOLUME ["/app/i"]
|
|
|
|
|
2016-09-19 18:34:16 +02:00
|
|
|
CMD node server.js
|