File tree 3 files changed +11
-9
lines changed
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
venv /
2
2
.venv
3
- .git /
4
3
htmlcov /
5
4
__pycache__ /
6
- .github /
7
5
* .egg-info /
8
6
.pytest_cache /
Original file line number Diff line number Diff line change 12
12
- name : get-tag
13
13
run : echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
14
14
- name : Build image
15
- run : docker build . -t epicwink/proxpi:${{ steps.get-tag.outputs.tag }}
15
+ run : docker buildx build . -t epicwink/proxpi:${{ steps.get-tag.outputs.tag }}
16
16
- name : Login to DockerHub
17
17
run : >
18
18
echo ${{ secrets.DOCKERHUB_PASSWORD }}
Original file line number Diff line number Diff line change 1
1
FROM python:alpine
2
- RUN apk add --no-cache libxslt libxml2
3
- ADD . /root/src/proxpi
4
- RUN apk add --no-cache --virtual .build-deps gcc libc-dev libxslt-dev libxml2-dev \
2
+
3
+ RUN --mount=source=.,target=/root/src/proxpi,rw \
4
+ uname -a && cat /etc/issue && apk --version && python --version && pip --version \
5
+ && apk --no-cache add git \
6
+ && git -C /root/src/proxpi restore .dockerignore \
5
7
&& pip install /root/src/proxpi \
6
- && apk del .build-deps
8
+ && apk del --purge git \
9
+ && pip list
10
+
7
11
ENV FLASK_APP=proxpi.server
8
- ENTRYPOINT ["flask" ]
9
- CMD ["run" , " --host" , "0.0.0.0" ]
12
+ ENTRYPOINT ["flask" , "run" ]
13
+ CMD ["--host" , "0.0.0.0" ]
You can’t perform that action at this time.
0 commit comments