blob: 3ada39ac1eebe7c820e846138283b054c4928989 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
FROM golang
# Install libraries
RUN go get \
github.com/gorilla/mux \
github.com/docker/docker/client \
github.com/docker/docker/api/types/network \
github.com/docker/docker/api/types/container \
github.com/docker/docker/api/types/mount \
docker.io/go-docker/api/types
# Create workdir
RUN mkdir /workdir
WORKDIR /workdir
# Copy our sources
COPY src /workdir/src
COPY hosted /workdir/hosted
# and build them
RUN go build -o /workdir/register src/*.go
ENTRYPOINT [ "/workdir/register" ]
|