Update Dockerfile
This commit is contained in:
committed by
GitHub
parent
cfcae0e866
commit
bf93e15f59
+3
-3
@@ -7,7 +7,7 @@ WORKDIR /app
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the binary.
|
# Build the binary.
|
||||||
RUN CGO_ENABLED=0 go build -o dynamic_dns_server .
|
RUN CGO_ENABLED=0 go build -o dynamic_mitm_server .
|
||||||
|
|
||||||
# Final minimal image.
|
# Final minimal image.
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
@@ -15,11 +15,11 @@ FROM alpine:latest
|
|||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
|
|
||||||
# Copy the binary and the ssl & webroot directories.
|
# Copy the binary and the ssl & webroot directories.
|
||||||
COPY --from=builder /app/dynamic_dns_server .
|
COPY --from=builder /app/dynamic_mitm_server .
|
||||||
COPY --from=builder /app/ssl ./ssl
|
COPY --from=builder /app/ssl ./ssl
|
||||||
COPY --from=builder /app/webroot ./webroot
|
COPY --from=builder /app/webroot ./webroot
|
||||||
|
|
||||||
# Expose the port (default 443).
|
# Expose the port (default 443).
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
|
|
||||||
ENTRYPOINT ["./dynamic_dns_server"]
|
ENTRYPOINT ["./dynamic_mitm_server"]
|
||||||
|
|||||||
Reference in New Issue
Block a user