docker
This commit is contained in:
parent
56c5a7512e
commit
dfc3ee3b96
2 changed files with 17 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FROM golang:1.26.2-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go mod download
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["go", "run", "."]
|
||||
6
docker-compose.yml
Normal file
6
docker-compose.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
services:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
restart: always
|
||||
Loading…
Add table
Add a link
Reference in a new issue