Dockerization and generalization of the project. Make it accessable for everyone

This commit is contained in:
Leonard Lorenz 2020-11-17 18:01:54 +01:00
parent d3a5cac4be
commit 85ff8b12f3
7 changed files with 256 additions and 169 deletions

18
Dockerfile Normal file
View 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"]