added dockerfiles
for building the stuff
This commit is contained in:
13
backend/public/Dockerfile
Normal file
13
backend/public/Dockerfile
Normal 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
14
backend/task/Dockerfile
Normal 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']
|
17
frontend/Dockerfile
Normal file
17
frontend/Dockerfile
Normal file
@@ -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']
|
Reference in New Issue
Block a user