Skip to content

Commit 8602382

Browse files
committed
fix: Remove old Dockerfiles, temporarily remove unneeded testing apparatus
1 parent 32e5216 commit 8602382

4 files changed

Lines changed: 8 additions & 99 deletions

File tree

dockerfiles/production/Makefile

Lines changed: 0 additions & 65 deletions
This file was deleted.

dockerfiles/production/docker-compose.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

gcp/Dockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

dockerfiles/production/Dockerfile.production renamed to gcp/policyengine_household_api/Dockerfile.production

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ RUN groupadd -r appuser && useradd -r -g appuser appuser
3333
COPY --from=builder /opt/venv /opt/venv
3434
COPY --from=builder /build/policyengine_household_api /app/policyengine_household_api
3535

36-
# Set ownership and switch user
36+
# Copy the startup script from the existing GCP configuration
37+
COPY gcp/policyengine_household_api/start.sh /app/start.sh
38+
39+
# Make startup script executable and set ownership
40+
RUN chmod +x /app/start.sh
3741
RUN chown -R appuser:appuser /app
3842
USER appuser
3943

4044
# Configure environment
4145
ENV PATH="/opt/venv/bin:$PATH"
4246
EXPOSE 8080
43-
CMD ["gunicorn", "--bind", "0.0.0.0:$PORT", "--workers", "2", "--timeout", "300", "policyengine_household_api.api:app"]
47+
48+
# Use the startup script from the existing GCP configuration
49+
CMD ["/app/start.sh"]

0 commit comments

Comments
 (0)