-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 685 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (20 loc) · 685 Bytes
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
FROM golang:1.26-bookworm AS builder
RUN apt update
RUN apt install -y git
RUN git clone --depth 1 https://github.com/MPZinke/typescript-jinja.git /typescript-jinja
WORKDIR /typescript-jinja
RUN go build -o tsgo ./cmd/tsgo
WORKDIR /usr
COPY ./source source
COPY ./tsconfig.json tsconfig.json
RUN /typescript-jinja/tsgo
# ---------------------- #
FROM python:3.13-slim
RUN apt update
RUN apt install -y jq netcat-traditional
RUN pip3 install toml-cli
COPY ./pyproject.toml ./
RUN pip3 install $(toml get --toml-path pyproject.toml project.dependencies | sed -e "s/[']/\"/g" | jq -r '.[]')
COPY --from=builder /usr/source ./source
EXPOSE 443
ENTRYPOINT ["python3", "./source"]