Add docker files
This commit is contained in:
parent
9922e5470c
commit
454fba797a
3
uno/client/Dockerfile
Normal file
3
uno/client/Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM nginx
|
||||
|
||||
COPY . /usr/share/nginx/html
|
10
uno/docker-compose.yml
Normal file
10
uno/docker-compose.yml
Normal 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
10
uno/server/Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM golang
|
||||
|
||||
WORKDIR /app/server
|
||||
COPY . .
|
||||
|
||||
RUN go mod download
|
||||
RUN go build -o server
|
||||
ENTRYPOINT ["./server"]
|
||||
|
||||
EXPOSE 8000
|
Reference in New Issue
Block a user