Skip to content

Commit

Permalink
slimmed down dockerfile build
Browse files Browse the repository at this point in the history
  • Loading branch information
GondekNP committed Dec 31, 2023
1 parent e1b7b93 commit d7ca3a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cloud_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
with:
workload_identity_provider: 'projects/113009620257/locations/global/workloadIdentityPools/github/providers/oidc-provider'
project_id: 'dse-nps'
# token_format: 'access_token'
# access_token_lifetime: 30
service_account: '[email protected]'

- name: Build and Deploy
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ RUN apt-get update && apt-get install -y \
ssh \
--no-install-recommends && rm -rf /var/lib/apt/lists/*

# Copy repo into
COPY . .
# Copy necessary files into container
COPY src/ /src/
COPY app.py /
COPY prod_environment.yml /

# Create a new conda environment from the environment.yml file
RUN mamba env create -f environment.yml
RUN mamba env create -f prod_environment.yml

# Make 'RUN' use the new environment:
SHELL ["conda", "run", "-n", "burn-severity-prod", "/bin/bash", "-c"]
Expand Down

0 comments on commit d7ca3a7

Please sign in to comment.