2024-01-20 19:19:02 -05:00
|
|
|
# Example Dockerfile
|
|
|
|
|
2024-01-20 19:10:18 -05:00
|
|
|
FROM node:alpine
|
|
|
|
|
|
|
|
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
|
|
|
RUN mkdir -p /secrets && chown -R node:node /secrets
|
|
|
|
|
|
|
|
WORKDIR /home/node/app
|
|
|
|
|
|
|
|
COPY package*.json ./
|
|
|
|
|
|
|
|
USER node
|
|
|
|
|
|
|
|
RUN npm ci
|
|
|
|
|
|
|
|
COPY --chown=node:node . .
|
|
|
|
|
|
|
|
EXPOSE 3001
|
|
|
|
|
|
|
|
CMD ["npm", "start"]
|