Testing new dockerfile

This commit is contained in:
gmemstr 2017-10-07 13:52:42 -07:00
parent 23cc4fa5d0
commit d4e8fdd93e
2 changed files with 5 additions and 4 deletions

View file

@ -26,7 +26,7 @@ matrix:
script:
- set -e
- docker build -t gmemstr/pogo .
- docker run -d --rm --name test -p 8000:8000 gmemstre/pogo
- docker run -d --rm --name test -p 8000:8000 gmemstr/pogo
- sleep 10
- docker ps | grep -q pogo
- set +e

View file

@ -2,10 +2,10 @@
FROM golang:latest
# Set working directory
WORKDIR /POGO
WORKDIR %GOPATH%/src/POGO
# Add source to container so we can build
ADD . /POGO
ADD . %GOPATH%/src/POGO
# 1. Install make and dependencies
# 2. Install Go dependencies
@ -13,7 +13,8 @@ ADD . /POGO
# 4. List directory structure (for debugging really)\
# 5. Make empty podcast direcory
# 6. Create empty feed files
RUN godep restore && \
RUN go get godep && \
godep restore && \
make linux && chmod +x pogoapp && \
ls -al && \
mkdir podcasts && \