Set proper permissions for data volume.
This commit is contained in:
@@ -23,11 +23,12 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
# Copy the rest of the application
|
# Copy the rest of the application
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN mkdir /data
|
|
||||||
|
|
||||||
# Create the SQLite database directory with proper permissions
|
# Create the SQLite database directory with proper permissions
|
||||||
RUN mkdir -p /app/instance && chmod 777 /app/instance
|
RUN mkdir -p /app/instance && chmod 777 /app/instance
|
||||||
|
|
||||||
|
RUN mkdir /data
|
||||||
|
RUN chmod 777 /data
|
||||||
|
|
||||||
# Expose the port the app runs on
|
# Expose the port the app runs on
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user