Skip to content

Commit

Permalink
Switch Docker image to use Alpine Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Dec 28, 2024
1 parent 9b3616c commit 76116b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ COPY --from=fe /src/frontend/build ./frontend/build/
RUN ./scripts.sh build-backend

# deploy
FROM debian:12
FROM alpine:3.21.0
LABEL org.opencontainers.image.source="https://github.com/0x2E/fusion"
RUN apt-get update && apt-get install -y sqlite3 ca-certificates
WORKDIR /fusion
COPY --from=be /src/build/fusion ./
EXPOSE 8080
Expand Down
2 changes: 1 addition & 1 deletion scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ build_frontend() {

build_backend() {
echo "building backend"
go build \
CGO_ENABLED=0 go build \
-ldflags '-extldflags "-static"' \
-o ./build/fusion \
./cmd/server/*
Expand Down

0 comments on commit 76116b1

Please sign in to comment.