Skip to content

Commit 9978c29

Browse files
committed
Introduction of the stable Dockerfile.
1 parent f884ee4 commit 9978c29

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/main.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@ jobs:
7575
context: .
7676
file: Dockerfile.pyfunceble-dev
7777
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
7894
tags: |
7995
ghcr.io/${{ steps.repository_name_conversion.outputs.lowercase }}/web-worker:latest
8096
ghcr.io/${{ steps.repository_name_conversion.outputs.lowercase }}/web-worker:${{ github.sha }}

Dockerfile.pyfunceble

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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" ]

0 commit comments

Comments
 (0)