Add docker files

This commit is contained in:
KingOfDog 2020-05-06 17:26:09 +02:00
parent 9922e5470c
commit 454fba797a
3 changed files with 23 additions and 0 deletions

3
uno/client/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM nginx
COPY . /usr/share/nginx/html

10
uno/docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: '3'
services:
client:
build: client
ports:
- "8000:80"
websocket:
build: server
ports:
- "8001:8000"

10
uno/server/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM golang
WORKDIR /app/server
COPY . .
RUN go mod download
RUN go build -o server
ENTRYPOINT ["./server"]
EXPOSE 8000