10 lines
170 B
Docker
10 lines
170 B
Docker
|
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"]
|