pogo/Dockerfile

29 lines
671 B
Docker
Raw Normal View History

# Use latest golang image
FROM golang:latest
2017-10-07 22:16:35 +01:00
RUN mkdir -p /go/src \
&& mkdir -p /go/bin \
&& mkdir -p /go/pkg
ENV GOPATH=/go
ENV PATH=$GOPATH/bin:$PATH
# Set working directory
2017-10-07 22:16:35 +01:00
WORKDIR $GOPATH/src/github.com/gmemstr/pogo
# Add source to container so we can build
2017-10-07 22:25:04 +01:00
ADD . $GOPATH/src/github.com/gmemstr/pogo
# 1. Install make and dependencies
# 2. Install Go dependencies
# 3. Build named Linux binary and allow execution
# 4. List directory structure (for debugging really)\
# 5. Make empty podcast direcory
# 6. Create empty feed files
2017-12-19 17:47:11 +00:00
RUN go get github.com/tools/godep && \
2017-10-07 21:52:42 +01:00
godep restore && \
go build -o pogoapp && chmod +x pogoapp
2017-10-08 00:52:58 +01:00
EXPOSE 3000
CMD ./pogoapp