Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
threnjen committed Oct 15, 2024
1 parent b2d022f commit 29afd73
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions Dockerfiles/Dockerfile.bgg_orchestrator
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,33 @@ RUN apt-get update && apt-get install -y \
# Install pipenv
RUN pip3 install pipenv

# Create the necessary directory for the application and dagster runs
RUN mkdir -p /app/aws_dagster_bgg/dagster_runs

# Set the working directory
WORKDIR /app

# Copy the Pipfile and other dependency files first to leverage Docker layer caching
COPY aws_dagster_bgg/Pipfile* ./
COPY aws_dagster_bgg/pyproject.toml ./

# Install dependencies with pipenv
RUN pipenv install --deploy --ignore-pipfile

# Copy the source code into the container
# COPY data game_data_scraper/data
COPY aws_dagster_bgg aws_dagster_bgg
COPY utils utils
COPY aws_dagster_bgg/Pipfile* .
COPY config.py .
COPY dagster_cloud.yaml .
COPY aws_dagster_bgg/pyproject.toml .
RUN MKDIR -p aws_dagster_bgg/dagster_runs

# Install dependencies with pipenv
RUN pipenv sync

# Set environment variables with ARG for build-time and ENV for runtime
ARG ENV
ENV ENV=$ENV

ARG ASSET
ENV ASSET=$ASSET

# Expose the port (if needed for the service)
EXPOSE 3000

# Set the entry point and command
Expand Down

0 comments on commit 29afd73

Please sign in to comment.