-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (17 loc) · 1.12 KB
/
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
FROM golang:1.7-alpine
RUN apk update \
&& apk add ca-certificates wget git openssh \
&& update-ca-certificates
ENV CONFIG_FILE=/etc/git-repo-mirror/config.yml
# Copy the local package files to the container's workspace.
ADD . /go/src/github.com/benjamincaldwell/git-repo-mirror
WORKDIR /go/src/github.com/benjamincaldwell/git-repo-mirror
# Install glide
RUN wget -qO- https://glide.sh/get | sh
RUN glide install
RUN go install github.com/benjamincaldwell/git-repo-mirror
RUN mkdir /etc/git-repo-mirror; echo "---" > /etc/git-repo-mirror/config.yml
# Run the outyet command by default when the container starts.
ENTRYPOINT /go/bin/git-repo-mirror
# Document that the service listens on port 8080.
EXPOSE 8080