Add docker files
This commit is contained in:
parent
b5b41c95a5
commit
46b7552ac5
2 changed files with 16 additions and 0 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
FROM golang:latest
|
||||||
|
LABEL maintainer="Marc Di Luzio <marc.diluzio@gmail.com>"
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
|
RUN go build -o rove .
|
||||||
|
|
||||||
|
CMD "./rove"
|
6
docker-compose.yml
Normal file
6
docker-compose.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
rove:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
Loading…
Add table
Add a link
Reference in a new issue