mango-explorer/Dockerfile

21 lines
639 B
Docker
Raw Normal View History

FROM python:3.10-slim
RUN apt-get update && apt-get -y install bc curl zlib1g-dev && apt-get clean && rm -rf /var/lib/apt/lists/*
2021-04-14 08:51:39 -07:00
2022-01-19 11:24:14 -08:00
RUN mkdir /app
2021-10-14 04:33:32 -07:00
COPY ./pyproject.toml ./poetry.lock ./
WORKDIR /app
ENV PYTHONPATH=${PYTHONPATH}:/app
ENV PATH="/app/bin:${PATH}:/app/scripts:/root/.local/share/solana/install/active_release/bin"
RUN pip install --upgrade pip && pip --no-cache-dir install poetry
2021-04-14 08:51:39 -07:00
RUN poetry config virtualenvs.create false
RUN poetry install --no-dev --no-root
# Have these as the last steps since the code here is the most-frequently changing
2021-10-14 04:33:32 -07:00
COPY . /app/
ARG LAST_COMMIT=""
RUN echo ${LAST_COMMIT} > /app/data/.version