Containerize project
This commit is contained in:
parent
8ca332a0f0
commit
18a15a9c79
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM golang:alpine
|
||||
WORKDIR /build
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN go build -o app ./cmd/app
|
||||
WORKDIR /storage
|
||||
CMD ["/build/app"]
|
||||
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
||||
version: "3"
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
BOTTOKEN: 7376542452:AAHO5e47cUTTWwjoXAdrRWZk61RhhabIKz8
|
||||
ADMINPASSWORD: .u=J)vkzpt;7D9.dR,H6k<N6H
|
||||
restart: always
|
||||
volumes:
|
||||
- ./storage:/storage
|
||||
Loading…
x
Reference in New Issue
Block a user