🎉 first commit

This commit is contained in:
2024-01-19 16:11:54 +04:00
commit f59cb4f927
22 changed files with 667 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM golang:1.21.6-alpine AS builder
WORKDIR /ohmyurl
COPY go.mod go.sum ./
RUN go mod download
COPY ./app ./app
RUN go build -o ./ohmyurl ./app/main.go
FROM scratch
COPY --from=builder /ohmyurl/app/templates/ /app/templates/
COPY --from=builder /ohmyurl/ohmyurl /ohmyurl
ENTRYPOINT ["/ohmyurl"]