Initial commit: Erika CV site with Nomad deployment
Some checks failed
Build and Deploy Erika CV / build-and-deploy (push) Failing after 10s
Some checks failed
Build and Deploy Erika CV / build-and-deploy (push) Failing after 10s
This commit is contained in:
29
Dockerfile
Normal file
29
Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ARG BUILD_VERSION=unknown
|
||||
ARG BUILD_TIME=unknown
|
||||
ARG GIT_COMMIT=unknown
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
FLASK_APP=app.py \
|
||||
FLASK_ENV=production \
|
||||
BUILD_VERSION=${BUILD_VERSION} \
|
||||
BUILD_TIME=${BUILD_TIME} \
|
||||
GIT_COMMIT=${GIT_COMMIT}
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN pip install --upgrade --no-cache-dir pip
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV PORT=5000 \
|
||||
HOST=0.0.0.0
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["sh", "-c", "gunicorn --bind ${HOST}:${PORT} --workers 2 --timeout 60 app:app"]
|
||||
Reference in New Issue
Block a user