Kavita/Dockerfile
Robbie Davis b5f92d46a9
Adding Additional Workflows and Actions (#397)
* Cleaning and adding to workflows

- Renamed some workflows to better describe it's purpose.
- Added steps for autobump
- Added steps for sentry maps
- Manually pushing sentry map workflow to git initially so it exists already for the workflow-dispatch trigger. Will need to add another commit to revert workflow back to only trigger on dispatch.

* Fixing and cleaning workflow

- Removed unused discord workflow
- Changed sentry map workflow to differentiate between another workflow.
- Changed name of new renamed sentry workflow in dispatches.

* Updating sentry workflow with dispatch trigger

* fixing webui path issue for docker builds
2021-07-17 15:05:40 -05:00

39 lines
956 B
Docker

#This Dockerfile creates a build for all architectures
#Image that copies in the files and passes them to the main image
FROM ubuntu:focal AS copytask
ARG TARGETPLATFORM
#Move the output files to where they need to be
RUN mkdir /files
COPY _output/*.tar.gz /files/
COPY UI/Web/dist /files/wwwroot
COPY copy_runtime.sh /copy_runtime.sh
RUN /copy_runtime.sh
#Production image
FROM ubuntu:focal
COPY --from=copytask /Kavita /kavita
COPY --from=copytask /files/wwwroot /kavita/wwwroot
#Installs program dependencies
RUN apt-get update \
&& apt-get install -y libicu-dev libssl1.1 pwgen \
&& rm -rf /var/lib/apt/lists/*
#Creates the data directory
RUN mkdir /kavita/data
RUN cp /kavita/appsettings.Development.json /kavita/appsettings.json \
&& sed -i 's/Data source=kavita.db/Data source=data\/kavita.db/g' /kavita/appsettings.json
COPY entrypoint.sh /entrypoint.sh
EXPOSE 5000
WORKDIR /kavita
ENTRYPOINT ["/bin/bash"]
CMD ["/entrypoint.sh"]