mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-08 00:24:21 +02:00
💚 fixing NODE_ENV weird comportment when build production in doscker env
This commit is contained in:
parent
e2381ebf24
commit
9d019c085d
@ -3,10 +3,8 @@ FROM node:20-alpine as build-stage
|
||||
|
||||
ARG user=node
|
||||
ARG project_dir=/opt/node_app
|
||||
ARG NODE_ENV=production
|
||||
ARG PORT=3000
|
||||
|
||||
ENV NODE_ENV $NODE_ENV
|
||||
ENV PORT $PORT
|
||||
ENV NODE_OPTIONS="--max_old_space_size=4096"
|
||||
|
||||
|
@ -5,8 +5,6 @@ services:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
- NODE_ENV=development
|
||||
volumes:
|
||||
- ./:/opt/node_app/app:delegated
|
||||
- ./package.json:/opt/node_app/app/package.json
|
||||
|
Loading…
x
Reference in New Issue
Block a user