Updated docker settings

This commit is contained in:
2019-04-14 19:04:08 +09:00
parent c210ab36ee
commit efcd77cb99
4 changed files with 18 additions and 7 deletions

View File

@ -1,9 +1,14 @@
# Install development environment
FROM blitzprog/aero
RUN git clone --progress --verbose --depth=1 https://github.com/animenotifier/database ~/.aero/db/arn
# Expect ~/notify.moe to be mounted as a volume
RUN cd ~/notify.moe && \
tsc && \
pack && \
go build
# Download database
RUN git clone --progress --depth=1 https://github.com/animenotifier/database ~/.aero/db/arn
# Download notify.moe dependencies
RUN curl -s -o go.mod https://raw.githubusercontent.com/animenotifier/notify.moe/go/go.mod && \
curl -s -o go.sum https://raw.githubusercontent.com/animenotifier/notify.moe/go/go.sum && \
go mod download && \
rm go.*
# Create empty working directory
WORKDIR /home/developer/notify.moe