diff --git a/backend/public/Dockerfile b/backend/public/Dockerfile new file mode 100644 index 0000000..80f23a7 --- /dev/null +++ b/backend/public/Dockerfile @@ -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'] diff --git a/backend/task/Dockerfile b/backend/task/Dockerfile new file mode 100644 index 0000000..9235cf5 --- /dev/null +++ b/backend/task/Dockerfile @@ -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'] diff --git a/frontend/Dockerfile b/frontend/Dockerfile new file mode 100644 index 0000000..c64e21b --- /dev/null +++ b/frontend/Dockerfile @@ -0,0 +1,17 @@ +FROM denoland/deno:alpine + +RUN apk add bash + +# USER deno + +RUN deno cache --reload deno.json + +COPY . . + +RUN bash -c 'deno cache main.ts' + +RUN bash -c 'deno task build' + +EXPOSE 8000 + +CMD ['run', '-A', 'main.ts']