blob: 1bfbd235e05936c2ea18f9d09f7e0a0ca9e18eb2 [file] [log] [blame]
Mohammed Naserd531f362022-09-16 11:38:55 -04001# syntax=docker/dockerfile-upstream:master-labs
2
3FROM python:3.10-slim AS poetry
4RUN --mount=type=cache,target=/root/.cache <<EOF
5 pip install poetry
6EOF
7
8FROM poetry AS builder
Mohammed Naser124a9bc2022-09-19 15:13:16 -04009RUN <<EOF
10 apt-get update
11 apt-get install -y gcc
12EOF
Mohammed Naserd531f362022-09-16 11:38:55 -040013ADD . /app
14WORKDIR /app
15ENV POETRY_VIRTUALENVS_IN_PROJECT=true
16RUN poetry install --only main --no-interaction
17
18FROM python:3.10-slim AS runtime
19ENV PATH="/app/.venv/bin:$PATH"
20COPY --from=builder --link /app /app
21CMD ["atmosphere-operator"]