mango-explorer/Dockerfile

24 lines
661 B
Docker
Raw Normal View History

FROM python:3.9-buster
RUN sh -c "$(curl -sSfL https://release.solana.com/v1.8.1/install)"
RUN apt-get update && apt-get -y install bc curl zlib1g-dev
2021-04-14 08:51:39 -07: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
ARG LAST_COMMIT=""
RUN echo ${LAST_COMMIT} > /app/data/.version
2021-04-14 08:51:39 -07:00
# Have this as the last step since the code here is the most-frequently changing
2021-10-14 04:33:32 -07:00
COPY . /app/