From 1314bbcd97f1ebf69574acea638ab4ddbce45cce Mon Sep 17 00:00:00 2001 From: "zeon-neon[bot]" <136533918+zeon-neon[bot]@users.noreply.github.com> Date: Sat, 7 Sep 2024 03:19:01 +0000 Subject: [PATCH] enhancement(lint): Fix lint errors for Dockerfile Co-authored-by: NeonGamerBot-QK Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com> --- Dockerfile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4b09593..e737313 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file +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" ]