mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-14 07:02:30 +01:00
18 lines
486 B
Docker
18 lines
486 B
Docker
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
|
|
|
|
FROM node:10-slim
|
|
RUN addgroup --gid 10001 app && adduser --disabled-password --gecos '' --gid 10001 --home /app --uid 10001 app
|
|
USER app
|
|
WORKDIR /app
|
|
COPY --chown=app:app --from=builder /app .
|
|
COPY --chown=app:app . .
|
|
|
|
ENV PORT=1443
|
|
EXPOSE $PORT
|
|
|
|
CMD ["node", "server/bin/prod.js"]
|