mirror of
https://github.com/Lissy93/web-check.git
synced 2024-11-25 01:33:20 +01:00
Update start command, and remove --prod flag from dev install script in Dockerfile
This commit is contained in:
parent
69abef34c5
commit
e5738d1f5b
@ -1,5 +1,5 @@
|
||||
# Specify the Node.js version to use
|
||||
ARG NODE_VERSION=16
|
||||
ARG NODE_VERSION=21
|
||||
|
||||
# Specify the Debian version to use, the default is "bullseye"
|
||||
ARG DEBIAN_VERSION=bullseye
|
||||
@ -30,7 +30,7 @@ COPY package.json yarn.lock ./
|
||||
|
||||
# Run yarn install to install dependencies and clear yarn cache
|
||||
RUN apt-get update && \
|
||||
yarn install --production --frozen-lockfile --network-timeout 100000 && \
|
||||
yarn install --frozen-lockfile --network-timeout 100000 && \
|
||||
rm -rf /app/node_modules/.cache
|
||||
|
||||
# Copy all files to working directory
|
||||
@ -59,4 +59,4 @@ EXPOSE ${PORT:-3000}
|
||||
ENV CHROME_PATH='/usr/bin/chromium'
|
||||
|
||||
# Define the command executed when the container starts and start the server.js of the Node.js application
|
||||
CMD ["yarn", "serve"]
|
||||
CMD ["yarn", "start"]
|
||||
|
Loading…
Reference in New Issue
Block a user