mirror of
https://github.com/gmemstr/pogo.git
synced 2024-09-19 17:21:10 +01:00
857729bca0
Wrote basic dockerfile to add files and build to image
24 lines
549 B
Docker
24 lines
549 B
Docker
# Use latest golang image
|
|
FROM golang:latest
|
|
|
|
# Set working directory
|
|
WORKDIR /WhiteRabbit
|
|
|
|
# Add source to container so we can build
|
|
ADD . /WhiteRabbit
|
|
|
|
# 1. Install make & co.
|
|
# 2. Install project dependencies
|
|
# 3. Build binary and move to parent directory
|
|
# 4. Create podcast directory
|
|
# 5. Generate basic skeleton files
|
|
RUN apt update; apt install build-essential -y && \
|
|
make install && \
|
|
make linux && chmod +x whiterabbit && \
|
|
ls -al && \
|
|
mkdir podcasts && \
|
|
touch feed.rss feed.json && echo '{}' >feed.json
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD whiterabbit |