Added Assets
This commit is contained in:
parent
7dd3f083b3
commit
adedc2277a
0
assets/.gitkeep
Normal file
0
assets/.gitkeep
Normal file
0
assets/compose-files/.gitkeep
Normal file
0
assets/compose-files/.gitkeep
Normal file
0
assets/dockerfiles/.gitkeep
Normal file
0
assets/dockerfiles/.gitkeep
Normal file
7
assets/dockerfiles/binary.dockerfile
Normal file
7
assets/dockerfiles/binary.dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM fedora:41
|
||||||
|
|
||||||
|
RUN dnf install -y socat
|
||||||
|
WORKDIR /service/
|
||||||
|
ADD ./okay /service/okay
|
||||||
|
RUN chmod +x ./okay
|
||||||
|
ENTRYPOINT ["socat", "-d", "TCP-LISTEN:3000,reuseaddr,fork", "EXEC:timeout -k 5 30 ./okay"]
|
||||||
9
assets/dockerfiles/crypto.dockerfile
Normal file
9
assets/dockerfiles/crypto.dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM python:3.6-slim
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y socat gcc g++ make libffi-dev libssl-dev
|
||||||
|
WORKDIR /service/
|
||||||
|
COPY ./requirements.txt ./requirements.txt
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
ADD ./main.py ./main.py
|
||||||
|
RUN chmod +x main.py
|
||||||
|
ENTRYPOINT socat -d TCP-LISTEN:3000,reuseaddr,fork EXEC:'timeout -k 5 30 python3 -u main.py'
|
||||||
20
assets/dockerfiles/web.dockerfile
Normal file
20
assets/dockerfiles/web.dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
FROM docker.io/oven/bun AS frontend
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY frontend/package*.json ./
|
||||||
|
RUN bun i
|
||||||
|
COPY frontend/ .
|
||||||
|
RUN bun run build
|
||||||
|
|
||||||
|
|
||||||
|
FROM python:3.12-slim
|
||||||
|
|
||||||
|
ENV DOCKER=1
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./backend/requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
COPY ./backend/ .
|
||||||
|
COPY --from=frontend /app/dist /app/frontend
|
||||||
|
|
||||||
|
CMD ["python3", "app.py"]
|
||||||
25
assets/dockerfiles/with-chunks.dockerfile
Normal file
25
assets/dockerfiles/with-chunks.dockerfile
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
FROM docker.io/oven/bun AS frontend
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY frontend/package*.json ./
|
||||||
|
RUN bun i
|
||||||
|
COPY frontend/ .
|
||||||
|
RUN bun run build
|
||||||
|
|
||||||
|
|
||||||
|
FROM python:3.12-slim
|
||||||
|
|
||||||
|
ENV DOCKER=1
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./backend/requirements.txt \
|
||||||
|
.
|
||||||
|
RUN pip install --no-cache-dir -r \
|
||||||
|
requirements.txt
|
||||||
|
COPY ./backend/ \
|
||||||
|
\
|
||||||
|
\
|
||||||
|
.
|
||||||
|
COPY --from=frontend /app/dist /app/frontend
|
||||||
|
|
||||||
|
CMD ["python3", "app.py"]
|
||||||
Loading…
x
Reference in New Issue
Block a user