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
|
# Create a production build of the app
|
||||||
FROM node:16.9.1 as build
|
FROM node:16.9.1 as build
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm install --silent
|
COPY .env.development .env
|
||||||
|
|
||||||
|
RUN npm install --silent
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
RUN npm install -g serve
|
RUN npm install -g serve
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
#target: final
|
#target: final
|
||||||
container_name: 'MauMau-Client'
|
container_name: 'MauMau-Client'
|
||||||
|
ports:
|
||||||
|
- '3000:3000'
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- MauMau
|
- MauMau
|
||||||
|
|||||||
Reference in New Issue
Block a user