fixed docker
This commit is contained in:
1
.env.production
Normal file
1
.env.production
Normal file
@@ -0,0 +1 @@
|
||||
REACT_APP_API_URL="localhost:80"
|
||||
@@ -1,8 +1,9 @@
|
||||
# Create a production build of the app
|
||||
FROM node:16.9.1 as build
|
||||
COPY . .
|
||||
RUN npm install --silent
|
||||
COPY .env.development .env
|
||||
|
||||
RUN npm install --silent
|
||||
RUN npm run build
|
||||
RUN npm install -g serve
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
#target: final
|
||||
container_name: 'MauMau-Client'
|
||||
ports:
|
||||
- '3000:3000'
|
||||
restart: always
|
||||
networks:
|
||||
- MauMau
|
||||
|
||||
Reference in New Issue
Block a user