feat: initial implementation

This commit is contained in:
2022-06-09 23:14:33 +01:00
commit 50c92a246d
11 changed files with 426 additions and 0 deletions

13
Dockerfile Normal file
View 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"]