pogo/Dockerfile

28 lines
705 B
Docker
Raw Normal View History

# Use latest golang image
FROM golang:latest
# Set working directory
2017-10-07 21:52:42 +01:00
WORKDIR %GOPATH%/src/POGO
# Add source to container so we can build
2017-10-07 21:52:42 +01:00
ADD . %GOPATH%/src/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-10-07 21:52:42 +01:00
RUN go get godep && \
godep restore && \
make linux && chmod +x pogoapp && \
ls -al && \
mkdir podcasts && \
touch assets/web/feed.rss assets/web/feed.json && \
echo '{}' >assets/web/feed.json && \
echo '{}' >assets/config/users.json && \
echo '{}' >assets/config/config.json
EXPOSE 8000
CMD ./pogoapp