added dockerfiles
for building the stuff
This commit is contained in:
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']
|
Reference in New Issue
Block a user