Dockerize application

This commit is contained in:
raul 2024-06-11 08:48:49 +02:00
parent 83e90a023c
commit baf534ea9a
2 changed files with 29 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM golang:1.22-alpine
RUN mkdir /app
ADD . /app
WORKDIR /app
RUN go build -o main .
CMD ["/app/main", "server"]

18
docker-compose.yml Normal file
View File

@ -0,0 +1,18 @@
version: '3'
networks:
cert400:
driver: bridge
services:
cert400:
container_name: "cert400"
build:
context: .
dockerfile: "Dockerfile"
ports:
- 1302:1302
networks:
- cert400
volumes:
- ./sample-config/:/root/.config/cert400/