go-proxy/Dockerfile

10 lines
170 B
Docker
Raw Normal View History

2019-06-18 01:05:06 +00:00
FROM golang:latest
ENV SOURCE_ADDR=127.0.0.1:80
ENV DESTINATION_ADDR=127.0.0.1:8071
RUN mkdir /app
ADD . /app/
WORKDIR /app
RUN go build -o main .
CMD ["/app/main"]