Skip to content

Commit

Permalink
change to alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislusf committed Jan 19, 2017
1 parent 65e1617 commit 1e7b547
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions Dockerfile
@@ -1,14 +1,11 @@
FROM ubuntu:15.10

RUN apt-get -y update && \
apt-get -y install gccgo && \
apt-get -y autoremove

WORKDIR /usr/local/src
COPY . /usr/local/src
RUN go build teeproxy.go

ENTRYPOINT ["/usr/local/src/teeproxy"]
FROM alpine:3.5

COPY teeproxy.go /usr/local/src/

RUN apk add --no-cache go musl-dev \
&& cd /usr/local/src/ \
&& CGO_ENABLED=0 go build teeproxy.go \
&& mv teeproxy /usr/local/bin/ \
&& apk del go musl-dev

ENTRYPOINT ["/usr/local/bin/teeproxy"]

0 comments on commit 1e7b547

Please sign in to comment.