Skip to content

Commit

Permalink
chore(ci): Use poetry-dotenv-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixpereira committed Jun 5, 2024
1 parent 36caa8f commit d76c219
Show file tree
Hide file tree
Showing 4 changed files with 1,098 additions and 19 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@ WORKDIR /app
# Install dependencies
COPY pyproject.toml poetry.lock ./

RUN --mount=type=secret,id=GUILD_ID,target=/run/secrets/GUILD_ID \
--mount=type=secret,id=BOT_TOKEN,target=/run/secrets/BOT_TOKEN \
GUILD_ID=$(cat /run/secrets/GUILD_ID) \
BOT_TOKEN=$(cat /run/secrets/BOT_TOKEN) \
&& pip install poetry \
&& poetry config virtualenvs.create false \
&& poetry install --no-dev
RUN pip install poetry \
&& poetry install --without dev

# Copy the rest of the application code
COPY . .
Expand Down
Loading

0 comments on commit d76c219

Please sign in to comment.