initial commit

This commit is contained in:
2022-11-30 22:46:48 -05:00
commit 16a45be28e
6 changed files with 125 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM docker.io/golang:1.19-alpine AS builder
WORKDIR /app
COPY go.mod ./
#COPY go.sum ./
RUN go mod download
COPY *.go ./
RUN go build -o /reqlog
FROM alpine:3.17.0
WORKDIR /
COPY --from=builder /reqlog .
EXPOSE 3000
CMD [ "/reqlog" ]