Merge remote-tracking branch 'origin/mauster' into mauster

This commit is contained in:
2023-03-22 15:29:32 +01:00
5 changed files with 33 additions and 0 deletions

3
.dockerignore Normal file
View File

@@ -0,0 +1,3 @@
.env.example
.idea
README.md

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"

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
# Create a production build of the app
FROM node:16.9.1 as build
COPY . .
COPY .env.development .env
RUN npm install --silent
RUN npm run build
RUN npm install -g serve
EXPOSE 3000
CMD serve -l 3000 -s build

17
docker-compose.yml Normal file
View File

@@ -0,0 +1,17 @@
version: '3.9'
services:
server:
build:
context: .
dockerfile: Dockerfile
#target: final
container_name: 'MauMau-Client'
ports:
- '3000:3000'
restart: always
networks:
- MauMau
networks:
MauMau:
# hier later extern naar client
driver: bridge