Another fix to the docker file.
This commit is contained in:
parent
4f1e6429f4
commit
0cf7a00dcf
|
@ -5,7 +5,10 @@ WORKDIR /app
|
||||||
ADD package.json /app/
|
ADD package.json /app/
|
||||||
ADD package-lock.json /app/
|
ADD package-lock.json /app/
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
RUN npm install
|
ARG build_config=prod
|
||||||
|
RUN npm install && \
|
||||||
|
npm run build:$build_config
|
||||||
|
|
||||||
|
|
||||||
### STAGE 2: Run ###
|
### STAGE 2: Run ###
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
Loading…
Reference in New Issue