mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-05 04:51:30 +01:00
12 lines
255 B
Docker
12 lines
255 B
Docker
FROM node:16.2.0
|
|
|
|
WORKDIR /usr/src/app
|
|
RUN chown --recursive node:node /usr/src/app
|
|
COPY --chown=node:node ./package*.json ./
|
|
RUN npm install
|
|
COPY --chown=node:node ./ ./
|
|
|
|
USER node
|
|
RUN npm run build
|
|
CMD ["npm", "run", "start", "--", "--port", "${PORT}"]
|