-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (18 loc) · 872 Bytes
/
Dockerfile
File metadata and controls
29 lines (18 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM golang:1.24.3-alpine3.21 as builder
RUN apk add --no-cache make ca-certificates gcc musl-dev linux-headers git jq bash
COPY ./go.mod /app/go.mod
COPY ./go.sum /app/go.sum
WORKDIR /app
RUN go mod download
COPY . /app/fishcake-service
WORKDIR /app/fishcake-service
RUN make fishcake
FROM alpine:3.18
COPY --from=builder /app/fishcake-service/fishcake /usr/local/bin
COPY --from=builder /app/fishcake-service/config.yaml /app/fishcake-service/config.yaml
COPY --from=builder /app/fishcake-service/fishcakefrebase.json /app/fishcake-service/fishcakefrebase.json
COPY --from=builder /app/fishcake-service/migrations /app/fishcake-service/migrations
ENV FISHCAKE_FFB="/app/fishcake-service/fishcakefrebase.json"
ENV FISHCAKE_MIGRATIONS_DIR="/app/fishcake-service/migrations"
ENV FISHCAKE_CONFIG="/app/fishcake-service/config.yaml"
WORKDIR /app/fishcake-service