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
|
COPY ./target/ /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Create temp download directory
|
||||||
|
RUN mkdir -p /Skycrate/downloaded/
|
||||||
|
RUN chown -R skycrateBack:skycrateBack /Skycrate /Skycrate/downloaded/
|
||||||
|
|
||||||
# Switch user
|
# Switch user
|
||||||
USER skycrateBack
|
USER skycrateBack
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user