Hotfix/docker file permissions (#350)
* Fixed file pathing for automated docker builds * Added back in renaming the Kavita executable * Testing new method for copying wwwroot folder * Fixed file pathing * Fixed pathing to test * Potential fix for Docker file permissions Co-authored-by: Chris Plaatjes <chris.p@boxbrite.com> Co-authored-by: Boxbrite User <boxbrite@Rathalos.localdomain>
This commit is contained in:
parent
20ba41c38f
commit
f7f983045d
5 changed files with 16 additions and 29 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#This Dockerfile creates a build for all architectures
|
||||
|
||||
#Production image
|
||||
#Image that copies in the files and passes them to the main image
|
||||
FROM ubuntu:focal AS copytask
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
|
|
@ -8,12 +8,15 @@ ARG TARGETPLATFORM
|
|||
#Move the output files to where they need to be
|
||||
RUN mkdir /files
|
||||
COPY _output/*.tar.gz /files/
|
||||
COPY Kavita-webui/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 /Kavita /kavita
|
||||
COPY --from=copytask /files/wwwroot /kavita/wwwroot
|
||||
|
||||
#Installs program dependencies
|
||||
RUN apt-get update \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue