about summary refs log tree commit diff
path: root/Dockerfile
blob: b11e58e1adbaf4b13dfa19a8480ca330aeb5ad10 (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/lib/pq

# 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/manager src/*.go

FROM alpine:3
RUN mkdir /workdir
COPY --from=0 /workdir/manager .
CMD ["./manager"]