forked from MaastrichtU-IDS/RDFCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (28 loc) · 942 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM node:lts-alpine AS frontend-build
WORKDIR /app
COPY ./app/package.json ./app/package-lock.json \
./app/tsconfig.json ./app/tsconfig.app.json ./app/tsconfig.node.json \
./app/vite.config.ts ./app/index.html ./
RUN npm install
COPY ./app/src ./src
RUN npm run build
FROM ghcr.io/astral-sh/uv:python3.11-alpine
# Install JRE and curl
RUN apk add --no-cache openjdk11-jre && \
addgroup -S app && adduser -S app -G app
USER app
ENV DEBUG=1
WORKDIR /app
# Download RMLMapper
ADD https://github.com/RMLio/rmlmapper-java/releases/download/v7.2.0/rmlmapper-7.2.0-r374-all.jar ./bin/mapper.jar
# Copy the backend dependencies
COPY ./pyproject.toml ./uv.lock ./.python-version ./
# Install backend dependencies
RUN uv sync
# Copy Backend source code
COPY main.py bootstrap.py ./
COPY ./server ./server
# Copy the frontend build
COPY --from=frontend-build /app/dist ./public
CMD ["uv", "run", "main.py"]
EXPOSE 8000