Skip to content

Commit

Permalink
enhancement(lint): Fix lint errors for Dockerfile
Browse files Browse the repository at this point in the history
Co-authored-by: NeonGamerBot-QK <[email protected]>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
  • Loading branch information
zeon-neon[bot] and NeonGamerBot-QK authored Sep 7, 2024
1 parent b2026c3 commit 1314bbc
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM node:20
# Create app directory
WORKDIR /app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json /app
LABEL org.opencontainers.image.source https://github.com/NeonGamerBot-QK/crc
# RUN npm install
# If you are building your code for production
RUN npm ci --omit=dev
COPY . /app
EXPOSE 3000
RUN npm run build
CMD [ "npm", "start" ]
FROM node:20
# Create app directory
WORKDIR /app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json /app
LABEL org.opencontainers.image.source https://github.com/NeonGamerBot-QK/crc
# RUN npm install
# If you are building your code for production
RUN npm ci --omit=dev
COPY . /app
EXPOSE 3000
RUN npm run build
CMD [ "npm", "start" ]

0 comments on commit 1314bbc

Please sign in to comment.