mirror of
https://github.com/aykhans/oh-my-url.git
synced 2025-07-05 01:42:39 +00:00
🎉 first commit
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user