mirror of
https://github.com/jimeh/shortmarks.git
synced 2026-02-19 09:56:42 +00:00
feat: initial implementation
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM golang:1.18-alpine as builder
|
||||
|
||||
RUN apk add --no-cache git make
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN env CGO_ENABLED=0 go build -a -o shortmarks -ldflags "-s -w"
|
||||
|
||||
FROM scratch
|
||||
ENV PORT 8080
|
||||
EXPOSE 8080
|
||||
WORKDIR /
|
||||
COPY --from=builder /app/shortmarks /
|
||||
CMD ["/shortmarks"]
|
||||
Reference in New Issue
Block a user