Initial import from running container + overrides
This commit is contained in:
commit
d9864f0cfd
27 files changed
+891
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
FROM python:3.11-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl dumb-init && rm -rf /var/lib/apt/lists/*
|
||||
# docker cli + compose plugin
|
||||
RUN mkdir -p /usr/lib/docker/cli-plugins && curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-26.1.4.tgz | tar xz -C /usr/local/bin --strip-components=1 docker/docker && curl -fsSL https://github.com/docker/compose/releases/download/v2.29.7/docker-compose-linux-x86_64 -o /usr/lib/docker/cli-plugins/docker-compose && chmod +x /usr/lib/docker/cli-plugins/docker-compose
|
||||
WORKDIR /opt/ihm
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt gunicorn
|
||||
COPY . .
|
||||
ENV FLASK_ENV=production
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/usr/bin/dumb-init","--"]
|
||||
CMD ["gunicorn","-b","0.0.0.0:8080","app:app","--workers","2","--threads","4","--timeout","300"]
|
||||
Reference in new issue
Block a user