Skip to content
Snippets Groups Projects
Commit d2c8c1a3 authored by Matthias Stefan Bodenbenner's avatar Matthias Stefan Bodenbenner
Browse files

replaced jar file with most current version 1.2.1 which fixes minor bugs

parent 088784c3
No related branches found
No related tags found
No related merge requests found
Pipeline #347003 passed
### 1. Get Linux ### 1. Get Docker image with jdk11
FROM eclipse-temurin:11-alpine FROM eclipse-temurin:11-alpine
### 2. Get Java via the package manager ### 2. Get Python, PIP
# RUN apk update
#&& apt upgrade \
#&& apt add --no-cache bash \
#&& apt add --no-cache --virtual=build-dependencies unzip \
#&& apt add --no-cache curl \
# RUN apk add --no-cache openjdk11
### 3. Get Python, PIP
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools RUN pip3 install --no-cache --upgrade pip setuptools
RUN mkdir /home/soil-backend # 3. Copy the python dependencies definition and install it
RUN mkdir /home/soil-backend
WORKDIR /home/soil-backend WORKDIR /home/soil-backend
COPY ./requirements.txt . COPY ./requirements.txt .
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
# 4. Copy all required source files and resources (i.e., the jar-build of the Monticore based SOIL tool)
COPY ./src ./src COPY ./src ./src
COPY ./resources ./resources COPY ./resources ./resources
WORKDIR ./src WORKDIR ./src
# 5. Start the FastAPI server
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment