all repos

onasty @ 688ee306df96529fa9a24172fddbb6091d427aca

a one-time notes service

onasty/Dockerfile (view raw)

Smirnov Oleksandr Smirnov Oleksandr
ss2316544@gmail.com
feat: add password support to notes (#41)..., 1 year ago
1
FROM golang:1.23.2-alpine AS builder
2
3
WORKDIR /app
4
5
COPY go.mod go.sum ./
6
RUN go mod download
7
8
COPY cmd cmd
9
COPY internal internal
10
11
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
12
RUN go build -trimpath -ldflags='-w -s' -o /onasty ./cmd/server
13
14
FROM alpine:3.20
15
COPY --from=builder /onasty /onasty
16
RUN apk --no-cache add ca-certificates
17
ENTRYPOINT ["/onasty"]