Skip to content

Commit

Permalink
Merge pull request #8 from DefGuard/fix-build
Browse files Browse the repository at this point in the history
  • Loading branch information
filipslezaklab authored Jun 12, 2023
2 parents 46511e7 + a47e76f commit a86ebd7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
FROM python:3.10
FROM python:3.10 as deps

RUN apt-get update && apt-get -y install libpcsclite-dev swig

ENV PATH="/venv/bin:$PATH"
WORKDIR /app
RUN python -m venv /venv
RUN pip install poetry
RUN pip install virtualenv
COPY poetry.lock pyproject.toml ./
RUN poetry config virtualenvs.create false
RUN poetry install --no-interaction

FROM python:3.10-slim

RUN apt-get update && apt-get -y install pcscd scdaemon gnupg
FROM deps as builder

ENV PATH="/venv/bin:$PATH"
WORKDIR /app
COPY --from=0 /venv /venv
COPY --from=deps /venv /venv
COPY entrypoint.sh ./entrypoint.sh
COPY proto ./proto
COPY yubi-bridge ./yubi-bridge
Expand Down

0 comments on commit a86ebd7

Please sign in to comment.