Fix: Downloading issue when deployed. Added a temp /Skycrate/downloaded directory and changed ownership to 1000:1000, this allows the file to be temporarily fetched to the server, then downloaded on client's site. Hoping to find a better (feasable) solution to this later.
This commit is contained in:
@@ -22,6 +22,10 @@ RUN chown -R skycrateBack:skycrateBack /app
|
||||
COPY ./target/ /app
|
||||
WORKDIR /app
|
||||
|
||||
# Create temp download directory
|
||||
RUN mkdir -p /Skycrate/downloaded/
|
||||
RUN chown -R skycrateBack:skycrateBack /Skycrate /Skycrate/downloaded/
|
||||
|
||||
# Switch user
|
||||
USER skycrateBack
|
||||
|
||||
|
||||
Reference in New Issue
Block a user