fixed docker

This commit is contained in:
Jordan Geurtsen
2023-03-22 10:07:15 +01:00
parent 8e9e5e1b01
commit f9ac888da8
4 changed files with 6 additions and 1 deletions

1
.env Normal file
View File

@@ -0,0 +1 @@
REACT_APP_API_URL=

1
.env.production Normal file
View File

@@ -0,0 +1 @@
REACT_APP_API_URL="localhost:80"

View File

@@ -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

View File

@@ -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