Merge pull request #2 from MauMauStudios/feature/deploymaunt
React Dockerfile
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.env.example
|
||||||
|
.idea
|
||||||
|
README.md
|
||||||
1
.env.production
Normal file
1
.env.production
Normal file
@@ -0,0 +1 @@
|
|||||||
|
REACT_APP_API_URL="localhost:80"
|
||||||
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
17
docker-compose.yml
Normal 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
|
||||||
Reference in New Issue
Block a user