File tree 2 files changed +37
-0
lines changed
2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 75
75
context : .
76
76
file : Dockerfile.pyfunceble-dev
77
77
push : true
78
+ tags : |
79
+ ghcr.io/${{ steps.repository_name_conversion.outputs.lowercase }}/web-worker-dev:latest
80
+ ghcr.io/${{ steps.repository_name_conversion.outputs.lowercase }}/web-worker-dev:${{ github.sha }}
81
+ ghcr.io/${{ steps.repository_name_conversion.outputs.lowercase }}/web-worker-dev:${{ env.WEB_WORKER_VERSION }}
82
+ labels : |
83
+ org.opencontainers.image.title=${{ github.event.repository.name }}
84
+ org.opencontainers.image.description=${{ github.event.repository.description }}
85
+ org.opencontainers.image.url=${{ github.event.repository.html_url }}
86
+ org.opencontainers.image.source=https://github.com/${{ steps.repository_name_conversion.outputs.lowercase }}
87
+
88
+ - name : Push to GitHub Packages
89
+ uses : docker/build-push-action@v2
90
+ with :
91
+ context : .
92
+ file : Dockerfile.pyfunceble
93
+ push : true
78
94
tags : |
79
95
ghcr.io/${{ steps.repository_name_conversion.outputs.lowercase }}/web-worker:latest
80
96
ghcr.io/${{ steps.repository_name_conversion.outputs.lowercase }}/web-worker:${{ github.sha }}
Original file line number Diff line number Diff line change
1
+ FROM tiangolo/uvicorn-gunicorn:python3.8
2
+
3
+ LABEL maintainer="Nissar Chababy <contact@funilrys.com>"
4
+
5
+ ARG PYFUNCEBLE_VERSION=""
6
+ ENV MODULE_NAME="pyfunceble_webworker.main"
7
+ ENV PYFUNCEBLE_WORKERS_DATA_DIR=/data
8
+ ENV BALANCED_PYFUNCEBLE_WORKERS=true
9
+ ENV MAX_WORKERS=1
10
+ ENV WEB_CONCURRENCY=1
11
+
12
+ COPY . /app/app
13
+
14
+ RUN cd /app/app && \
15
+ pip install . && \
16
+ if [ -z "$PYFUNCEBLE_VERSION" ]; then pip install PyFunceble ; else pip install PyFunceble==${PYFUNCEBLE_VERSION} ; fi && \
17
+ cd ..
18
+
19
+ WORKDIR /app
20
+
21
+ VOLUME [ "/data" ]
You can’t perform that action at this time.
0 commit comments