Commit 1d4ec0cb authored by Maiterth, Matthias's avatar Maiterth, Matthias
Browse files

Adjusted Dockerfile to assure amd64 + FMU

Makefile includes docker platform flags for linux/amd64 ensuring that mac M  chips use the correct platform
Enabled the -c flag on for the make docker_run command.

With this
```
make docker_build
make docker_run
```
Work again with docker on mac.
parent 2d3cda50
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7,11 +7,11 @@ ENV RAPS_DIR=/home/raps
WORKDIR ${RAPS_DIR}

RUN pip install --upgrade pip
RUN pip install install hatch
RUN pip install hatch

COPY pyproject.toml ${RAPS_DIR}
RUN hatch dep show requirements > ${RAPS_DIR}/requirements.txt
RUN pip install -r requirements.txt
COPY . ${RAPS_DIR}

CMD ["python3", "main.py"]
CMD ["python3", "main.py", "-c"]
+2 −2
Original line number Diff line number Diff line
@@ -12,8 +12,8 @@ run:
IMAGE_NAME = raps

docker_build:
	docker build -t $(IMAGE_NAME) .
	docker build --platform linux/amd64 -t $(IMAGE_NAME) .

docker_run:
	docker run -it $(IMAGE_NAME)
	docker run --platform linux/amd64 -it $(IMAGE_NAME)