Add production mode to docker

This commit is contained in:
Lucien Astié 2024-08-10 13:49:42 +02:00
parent 32c3debad4
commit 4338b11939
4 changed files with 27 additions and 14 deletions

View file

@ -5,5 +5,6 @@ WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
CMD ["node", "server.mjs"]
EXPOSE 3000