Compare commits
No commits in common. "807fbc227914fdf517e971dac8b1bdc4bf85af29" and "98ca1201565448a439e5ef78361903f63d3b130a" have entirely different histories.
807fbc2279
...
98ca120156
19
dockerfile
19
dockerfile
@ -1,19 +0,0 @@
|
||||
FROM python:alpine
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the requirements file into the container
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install the required packages
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the application code into the container
|
||||
COPY src/ ./src
|
||||
|
||||
# Expose the port the app runs on
|
||||
EXPOSE 5000
|
||||
|
||||
# run the application
|
||||
CMD ["python", "src/main.py"]
|
@ -28,7 +28,7 @@ logger.info("Flask app initialized.")
|
||||
|
||||
# Initialize database
|
||||
logger.info("Initializing database...")
|
||||
db = database.Database(os.getenv('DB_LOCATION', 'app.db'))
|
||||
db = database.Database('app.db')
|
||||
|
||||
if db.get_user('SYSTEM') is None:
|
||||
logger.info("Running first time setup...")
|
||||
|
Loading…
x
Reference in New Issue
Block a user