blob: dcfa5c546b5574e8d7cbfa647292a4c90374adda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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 \
docker.io/go-docker/api/types/mount
# 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" ]
|