Dockerization and generalization of the project. Make it accessable for everyone
This commit is contained in:
parent
d3a5cac4be
commit
85ff8b12f3
7 changed files with 256 additions and 169 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM rustlang/rust:nightly
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENV ROOT_PATH=/root/crablog/content
|
||||
ENV DATABASE_URL=${ROOT_PATH}/db.sqlite3
|
||||
|
||||
RUN mkdir -p /root/crablog
|
||||
|
||||
COPY ./site /root/crablog
|
||||
|
||||
# set up database
|
||||
WORKDIR /root/crablog
|
||||
|
||||
# install crablog
|
||||
RUN cargo install --path . --root /
|
||||
|
||||
CMD ["crablog"]
|
Loading…
Add table
Add a link
Reference in a new issue