Skip to content

Commit 2024a88

Browse files
committed
refactor: move platform flag to compose
1 parent ebb1bb5 commit 2024a88

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 python:3.13-slim AS base
1+
FROM python:3.13-slim AS base
22
WORKDIR /code
33
CMD ["/code/src/init.sh", "api"]
44
EXPOSE 5000
@@ -7,8 +7,8 @@ ENV PYTHONUNBUFFERED=1
77
ENV PYTHONPATH=/code
88

99
RUN pip install --upgrade pip && \
10-
pip install poetry && \
11-
poetry config virtualenvs.create false
10+
pip install poetry && \
11+
poetry config virtualenvs.create false
1212

1313
COPY pyproject.toml pyproject.toml
1414
COPY poetry.lock poetry.lock

docker-compose.override.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
services:
2-
32
api:
43
build:
54
target: development
65
image: template-api-dev
6+
platform: linux/amd64
77
volumes:
88
- ./api/src/:/code/src
99
env_file:

0 commit comments

Comments
 (0)