docker 化
This commit is contained in:
3
.docker/web/.env
Normal file
3
.docker/web/.env
Normal file
@@ -0,0 +1,3 @@
|
||||
CGO_ENABLED=0
|
||||
GOOS=darwin
|
||||
GOARCH=amd64
|
||||
13
.docker/web/Dockerfile
Normal file
13
.docker/web/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user