refractoring
This commit is contained in:
@@ -5,10 +5,10 @@ FROM python:3.10
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the current directory contents into the container at /app
|
||||
COPY . /app
|
||||
COPY ./propedal-planner /app
|
||||
|
||||
# Install any needed packages specified in requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Make port available to the world outside this container
|
||||
EXPOSE 8001
|
||||
|
||||
1
build_an_run_production.sh
Normal file
1
build_an_run_production.sh
Normal file
@@ -0,0 +1 @@
|
||||
docker compose up -d --build
|
||||
@@ -1,3 +1,5 @@
|
||||
export FLASK_ENV=development
|
||||
export CONFIG=config.DevelopmentConfig
|
||||
export FLASK_APP=propedal-planner/app.py
|
||||
#cd ./app
|
||||
flask run --host=0.0.0.0
|
||||
Reference in New Issue
Block a user