File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1.4
2+
13# First Stage: Build Proxy service
2- FROM python:3.13-alpine AS deps
4+ FROM --platform=linux/x86_64 python:3.13-alpine AS deps
35
46# Install poetry
57RUN pip install poetry
@@ -8,7 +10,7 @@ RUN pip install poetry
810COPY pyproject.toml poetry.lock ./
911RUN poetry config virtualenvs.in-project true && poetry install --no-root
1012
11- FROM deps AS runtime
13+ FROM --platform=linux/x86_64 deps AS runtime
1214
1315# Copy virtual env from python-deps stage
1416COPY --from=deps /.venv /.venv
@@ -23,17 +25,17 @@ USER appuser
2325
2426# Install application into container
2527COPY app.py __init__.py /home/appuser/app/
28+ COPY ./specification /home/appuser/app/specification
2629# Copy supervisord configuration
2730COPY supervisord.conf /etc/supervisord.conf
2831
29- COPY ./specification /home/appuser/app/specification
30- # Install Prism
32+ # Switch to root and install Prism & Supervisor
3133USER root
3234RUN apk add --no-cache nodejs npm && \
3335 npm install --ignore-scripts -g @stoplight/prism-cli && \
3436 apk add --no-cache supervisor
3537
36- # Expose ports
38+ # Expose port and start app
3739EXPOSE 9000
3840ENV UPSTREAM_HOST=http://localhost:5000
3941# Run supervisord
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ build-and-publish-sandbox-image:
3535
3636deploy-sandbox-spec :
3737 make -C .. construct-spec APIM_ENV=sandbox
38- proxygen instance deploy sandbox eligibility-signposting-api build/specification/sandbox/eligibility-signposting-api.yaml
38+ proxygen instance deploy sandbox eligibility-signposting-api ../ build/specification/sandbox/eligibility-signposting-api.yaml
3939
4040up : build
4141 docker compose -f docker-compose.yaml up -d
You can’t perform that action at this time.
0 commit comments