-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 797 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 797 Bytes
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
27
FROM golang:1.10-alpine
ARG http_proxy
COPY run.sh /usr/bin/gotodo
RUN export http_proxy=${http_proxy} && \
export https_proxy=${http_proxy} && \
export HTTP_PROXY=${http_proxy} && \
export HTTPS_PROXY=${http_proxy} && \
apk add --update inotify-tools curl bash && \
chmod +x /usr/bin/gotodo && \
mkdir -p /go/src/github.com/pascencio/gotodo && \
chmod 777 -R /go/src/github.com && \
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh && \
curl https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -o /usr/bin/wait-for-it && \
chmod +x /usr/bin/wait-for-it && \
export http_proxy="" && \
export https_proxy="" && \
export HTTP_PROXY="" && \
export HTTPS_PROXY=""
WORKDIR /go/src/github.com/pascencio/gotodo
EXPOSE 8080
CMD [ "/usr/bin/gotodo" ]