-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 loc) · 862 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Use an official Python runtime as a parent image
FROM python:3.12-slim
# Install Git
RUN apt-get update && \
apt-get install -y git
RUN apt-get install -y gdal-bin libgdal-dev g++
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install the required packages
RUN pip install --upgrade pip
RUN pip install git+https://github.com/djtfmartin/python-dwca-reader.git
RUN pip install git+https://github.com/AtlasOfLivingAustralia/dwc-dataframe-validator.git
RUN pip install -r requirements.txt
RUN pip install uvicorn
# Expose the port your app runs on
EXPOSE 5000
ENV TIMEOUT_KEEP_ALIVE=120
ENV HOST=0.0.0.0
ENV PORT=5000
WORKDIR /app/app
# Run the application
ENTRYPOINT uvicorn main:app --reload --host $HOST --port $PORT --timeout-keep-alive $TIMEOUT_KEEP_ALIVE