forked from ghostunnel/ghostunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (19 loc) · 691 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Dockerfile for squareup/ghostunnel, useful as a basis for other images.
#
# To build this image:
# docker build -t squareup/ghostunnel .
#
# To run ghostunnel from the image (for example):
# docker run --rm squareup/ghostunnel ghostunnel --version
FROM golang:1.10.1-alpine as build
MAINTAINER Cedric Staub "[email protected]"
# Dependencies
RUN apk add --no-cache --update gcc musl-dev libtool
# Copy source
COPY . /go/src/github.com/square/ghostunnel
# Build
RUN go build -o /usr/bin/ghostunnel github.com/square/ghostunnel
# Create a multi-stage build with the binary
FROM alpine
COPY --from=build /usr/bin/ghostunnel /usr/bin/ghostunnel
ENTRYPOINT ["/usr/bin/ghostunnel"]