This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
||||
WORKDIR /home/node/app
|
||||
RUN corepack enable
|
||||
COPY package*.json ./
|
||||
USER node
|
||||
RUN yarn install
|
||||
COPY --chown=node:node . .
|
||||
ENV PORT=80
|
||||
EXPOSE 80
|
||||
CMD [ "npm", "start" ]
|
||||
Reference in New Issue
Block a user