1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-10 21:22:35 +01:00
send/Dockerfile

18 lines
486 B
Docker
Raw Normal View History

2019-01-07 21:50:01 +01:00
FROM node:10 AS builder
RUN addgroup --gid 10001 app && adduser --disabled-password --gecos '' --gid 10001 --home /app --uid 10001 app
COPY package*.json /app/
WORKDIR /app
RUN npm install --production
2017-06-09 01:11:17 +02:00
2019-01-07 21:50:01 +01:00
FROM node:10-slim
RUN addgroup --gid 10001 app && adduser --disabled-password --gecos '' --gid 10001 --home /app --uid 10001 app
USER app
2017-06-09 01:11:17 +02:00
WORKDIR /app
2019-01-07 21:50:01 +01:00
COPY --chown=app:app --from=builder /app .
COPY --chown=app:app . .
2017-06-09 01:11:17 +02:00
ENV PORT=1443
EXPOSE $PORT
2019-01-07 21:50:01 +01:00
CMD ["node", "server/bin/prod.js"]