Skip to content

Commit

Permalink
Use go 1.14.7 in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpilotti committed Aug 28, 2020
1 parent 336cdfd commit c971db9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dev/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ RUN apt-get update && \
-subj "/C=US/ST=VA/L=SomeCity/O=MyCompany/OU=MyDivision/CN=localhost" && \
openssl x509 -req -days 365 -in server.csr -signkey key.pem -out server.pem

RUN curl -L https://dl.google.com/go/go1.14.7.linux-amd64.tar.gz -o golang.tgz && \
tar zxvf golang.tgz && rm golang.tgz

RUN git clone https://github.com/bolkedebruin/rdpgw.git && \
cd rdpgw && \
env GOOS=linux GOARCH=amd64 go build && \
env GOOS=linux GOARCH=amd64 GOROOT=/go /go/bin/go build && \
mkdir -p /opt/rdpgw && \
mv rdpgw /opt/rdpgw/rdpgw && \
rm -rf /root/go && \
rm -rf /rdpgw

RUN rm -rf /go

COPY rdpgw.yaml /opt/rdpgw/rdpgw.yaml

RUN useradd -m -d /opt/rdpgw -u 1001 -c "rdgw" rdgw && \
Expand Down

0 comments on commit c971db9

Please sign in to comment.