forked from HannoverJS/api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (22 loc) · 889 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:alpine
COPY ./ /go/src/github.com/HannoverGophers/hannovergophers-api
COPY ./.env /go
RUN /bin/ash -l -c "ls -lah /go/src/github.com/HannoverGophers/hannovergophers-api"
RUN /bin/ash -l -c "pwd"
RUN /bin/ash -l -c "ls -lah"
RUN apk add --no-cache git \
&& go get github.com/gorilla/mux \
&& go get github.com/joho/godotenv \
&& go get github.com/joho/godotenv/cmd/godotenv \
&& go get github.com/sirupsen/logrus \
&& go get github.com/urfave/negroni \
&& go get github.com/meatballhat/negroni-logrus \
&& go get github.com/phyber/negroni-gzip/gzip \
&& go get github.com/rs/cors \
&& go get github.com/unrolled/secure \
&& go get github.com/eladmica/go-meetup/meetup \
&& go install github.com/HannoverGophers/hannovergophers-api \
&& apk del git
RUN /bin/ash -l -c "ls -lah /go/bin/"
CMD /go/bin/hannovergophers-api
EXPOSE 8000