| FROM ubuntu:latest |
|
|
| |
| |
| |
| ENV DEBIAN_FRONTEND=noninteractive \ |
| PYTHONUNBUFFERED=1 \ |
| PYTHONDONTWRITEBYTECODE=1 |
|
|
| RUN apt-get update && \ |
| apt-get install -y \ |
| python3 \ |
| python3-pip \ |
| python3-venv \ |
| nginx \ |
| curl \ |
| ca-certificates \ |
| git \ |
| build-essential && \ |
| rm -rf /var/lib/apt/lists/* |
|
|
| |
| WORKDIR /app |
| RUN git clone --branch v0.0.2 --depth 1 https://github.com/VectorInstitute/aspis.git . |
|
|
| |
| ADD https://astral.sh/uv/install.sh /uv-installer.sh |
| RUN sh /uv-installer.sh && rm /uv-installer.sh |
| ENV PATH="/root/.local/bin:${PATH}" |
| RUN uv sync |
| ENV PATH="/app/.venv/bin:${PATH}" |
|
|
| |
| RUN rm /etc/nginx/sites-enabled/default |
|
|
| |
| RUN cp src/aspis/nginx/nginx.conf /etc/nginx/nginx.conf |
|
|
| RUN chmod +x docker_services.sh |
|
|
| EXPOSE 8080 |
|
|
| CMD ["./docker_services.sh"] |
|
|