-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement(lint): Fix lint errors for Dockerfile
Co-authored-by: NeonGamerBot-QK <[email protected]> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b2026c3
commit 1314bbc
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |