Skip to content

Commit

Permalink
Switch to Debian base
Browse files Browse the repository at this point in the history
  • Loading branch information
wfg committed Jan 13, 2024
1 parent 782cd1c commit 3dbcc9e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM golang:alpine AS builder
FROM golang:1.21-bookworm AS builder

WORKDIR /app
COPY . /app
RUN go build ./cmd/socks5-server


FROM alpine:3.17
COPY --from=builder /app/socks5-server /socks5-server
ENTRYPOINT ["/socks5-server"]
FROM debian:bookworm-slim

WORKDIR /app
COPY --from=builder /app/socks5-server .
ENTRYPOINT ["/app/socks5-server"]

0 comments on commit 3dbcc9e

Please sign in to comment.