Skip to content
Snippets Groups Projects
Commit d32eca57 authored by Ilia Eriomenco's avatar Ilia Eriomenco
Browse files

Update Dockerfile-production

parent c7a0ea33
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,19 @@ RUN yarn install --frozen-lockfile --production=false
COPY . .
RUN yarn webpack --config webpack/webpack.production.config.js
# IMAGE FOR RUNNING
FROM node:15.11-alpine as server
ARG instance_name
ARG node_env
ARG server_protocol
ARG server_host
ARG server_port
ARG client_protocol
ARG client_host
ARG client_port
ENV INSTANCE_NAME $instance_name
ENV NODE_ENV "production"
......@@ -29,11 +41,6 @@ ENV CLIENT_PROTOCOL "http"
ENV CLIENT_HOST "0.0.0.0"
ENV CLIENT_PORT "4000"
RUN yarn webpack --config webpack/webpack.production.config.js
# IMAGE FOR RUNNING
FROM node:15.11-alpine as server
WORKDIR /home/node/app
RUN chown -R node:node .
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment