added dockerfiles

for building the stuff
This commit is contained in:
2025-07-19 00:44:28 -04:00
parent 6eea6724bf
commit 79cc4caa58
3 changed files with 44 additions and 0 deletions

13
backend/public/Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM rust:1.88.0
WORKDIR /app
COPY ./public ./public
COPY ./cache ./cache
# COPY ./storage ./storage
RUN cargo build --release --manifest-path ./public/Cargo.toml
EXPOSE 3000
CMD ['cargo', 'run', '--manifest-path', '/app/public/Cargo.toml']

14
backend/task/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM rust:1.88.0
WORKDIR /app
COPY ./task ./task
COPY ./cache ./cache
COPY ./storage ./storage
RUN mkdir /app/posts
RUN cargo build --release --manifest-path ./task/Cargo.toml
EXPOSE 3000
CMD ['cargo', 'run', '--manifest-path', '/app/task/Cargo.toml']