-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 746 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 746 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
# syntax=docker/dockerfile:1
FROM golang:1.25.2-trixie AS build-stage
# Install libvips and libvips-dev
RUN apt-get update && \
apt-get install -y libvips libvips-dev && \
rm -rf /var/lib/apt/lists/*
ADD . /src
WORKDIR /src
RUN CGO_ENABLED=1 GOOS=linux go build -o /bin/twitterbridge .
FROM gcr.io/distroless/base-debian12 AS build-release-stage
COPY --from=build-stage /bin/twitterbridge /bin/twitterbridge
WORKDIR /config
ENV TWITTER_BRIDGE_DATABASE_TYPE="sqlite" \
TWITTER_BRIDGE_DATABASE_PATH="/config/database/sqlite.db" \
TWITTER_BRIDGE_CDN_URL="http://127.0.0.1:3000" \
TWITTER_BRIDGE_SERVER_PORT=3000 \
TWITTER_BRIDGE_TRACK_ANALYTICS=true \
TWITTER_BRIDGE_DEVELOPER_MODE=false
CMD ["/bin/twitterbridge"]