crablog/Dockerfile

19 lines
298 B
Text
Raw Normal View History

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
2020-12-05 22:33:38 +01:00
RUN cargo install --path . --root / -j $(nproc)
CMD ["crablog"]