-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd4054e
commit f4864ed
Showing
6 changed files
with
20 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,12 @@ | ||
FROM python:3.10-slim-bullseye | ||
FROM 007065811408.dkr.ecr.eu-west-3.amazonaws.com/python-3-11:1 | ||
|
||
RUN apt update && apt install -y git | ||
|
||
ENV POETRY_NO_INTERACTION=1 \ | ||
POETRY_VIRTUALENVS_IN_PROJECT=1 \ | ||
POETRY_CACHE_DIR=/tmp/poetry_cache \ | ||
POETRY_VENV=/opt/poetry \ | ||
POETRY_VERSION=1.7.1 \ | ||
APP_DIR=/home/src/magicparse | ||
|
||
# Add poetry to PATH | ||
ENV PATH="${PATH}:${POETRY_VENV}/bin" | ||
|
||
RUN python3 -m venv $POETRY_VENV \ | ||
&& $POETRY_VENV/bin/pip install -U pip setuptools \ | ||
&& $POETRY_VENV/bin/pip install poetry==${POETRY_VERSION} | ||
|
||
WORKDIR $APP_DIR | ||
|
||
# Activate the app virtualenv | ||
ENV APP_VENV="$APP_DIR/.venv" | ||
ENV PATH="$APP_VENV/bin:$PATH" | ||
RUN python3 -m venv $APP_VENV | ||
WORKDIR /app | ||
|
||
COPY pyproject.toml poetry.lock ./ | ||
|
||
RUN poetry install --no-root | ||
|
||
COPY . ./ | ||
COPY . . | ||
|
||
RUN poetry install | ||
RUN poetry install --without dev && \ | ||
poetry config http-basic.* --unset | ||
|
||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
version: '3.0' | ||
|
||
services: | ||
|
||
magicparse: | ||
build: | ||
context: . | ||
args: | ||
- USERNAME=magicparse | ||
tty: true | ||
working_dir: /home/src/magicparse | ||
working_dir: /app | ||
volumes: | ||
- .:/home/src/magicparse | ||
- /home/src/magicparse/.venv/ | ||
- .:/app | ||
- /app/.venv/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters