-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (15 loc) · 612 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:1.22.4-bookworm AS builder
WORKDIR /app
RUN apt-get update && apt-get install -y libvorbis-dev libogg-dev
COPY . .
RUN go mod download
RUN GOOS=linux go build -ldflags "-s -w" -v -o gunslinger
# Based on Debian but includes a minimal headless chrome
FROM chromedp/headless-shell:latest
RUN apt-get update && apt-get install -y ca-certificates iptables procps sqlite3 libvorbis-dev libogg-dev && rm -rf /var/lib/apt/lists/*
# Copy binary to production image
COPY --from=builder /app/gunslinger /app/gunslinger
ENV PORT=8080
EXPOSE 8080
# Run on container startup.
ENTRYPOINT ["/app/gunslinger"]