Add Dockerfile
This commit is contained in:
parent
8d3dfb1457
commit
48d071757d
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
_*
|
||||
*.sqlite
|
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM golang:latest
|
||||
|
||||
WORKDIR /app
|
||||
ADD . /app
|
||||
|
||||
RUN go mod download
|
||||
RUN go build -o ./api-cds-search
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["./api-cds-search"]
|
Loading…
Reference in New Issue
Block a user