Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM golang:1.23-alpine AS builder
WORKDIR /workspace

COPY . .
RUN go get
RUN go build -o /workspace/sniproxy


FROM golang:1.23-alpine AS release

WORKDIR /sniproxy

RUN mkdir -p /sniproxy/conf

# Copy from builder
COPY --from=builder /workspace/sniproxy ./sniproxy

RUN chmod +x sniproxy
COPY config.yaml ./conf

EXPOSE 443

CMD ["./sniproxy","-c","./conf/config.yaml"]