Package legacy database in application image
This commit is contained in:
@@ -5,10 +5,12 @@ WORKDIR /app
|
||||
|
||||
RUN pip install --no-cache-dir --upgrade pip
|
||||
|
||||
COPY requirements.txt .
|
||||
COPY TelcoPortal-source/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
COPY TelcoPortal-source/ .
|
||||
RUN mkdir -p /app/legacy-data
|
||||
COPY data/telco.db /app/legacy-data/telco.db
|
||||
|
||||
# Persistent application state (the generated Flask session key) lives in this volume.
|
||||
VOLUME ["/app/data"]
|
||||
|
||||
Reference in New Issue
Block a user