docker 化

This commit is contained in:
迟龙恩
2019-02-12 16:35:08 +08:00
parent cce046b404
commit 2fcd913751
6 changed files with 396 additions and 4 deletions

3
.docker/web/.env Normal file
View File

@@ -0,0 +1,3 @@
CGO_ENABLED=0
GOOS=darwin
GOARCH=amd64

13
.docker/web/Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM alpine:3.8
# Expose the application on port 8080*
EXPOSE 8080 443
RUN apk add tzdata bash --update-cache --repository http://mirrors.ustc.edu.cn/alpine/v3.8/main/ --allow-untrusted
RUN apk add --no-cache --virtual .build-deps curl tzdata --update-cache --repository http://mirrors.ustc.edu.cn/alpine/v3.8/main/ --allow-untrusted && \
curl -o wait-for-it.sh https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh && chmod +x wait-for-it.sh && \
apk del .build-deps
COPY conf/app.conf ./conf/
COPY static ./static
COPY views ./views
ADD PPGo_Job .
CMD ["./PPGo_Job"]