Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tedoaba committed Oct 28, 2024
1 parent 4d0bc9a commit 2d8d37d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 35 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ WORKDIR /app

# Copy requirements file and install dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

# Copy project files
COPY . .

# Install npm and necessary packages (for running Tailwind CSS commands)
RUN apt-get update && apt-get install -y nodejs npm
WORKDIR /app/app # Move to where `package.json` is located
RUN npm install

# Expose Flask port
EXPOSE 8000

# Command to run on container start
CMD ["flask", "--app", "app", "run", "--host=0.0.0.0", "--port=8000", "--debug"]
CMD ["flask", "--app", "app", "run", "--host=0.0.0.0", "--port=8000", "--debug"]
28 changes: 0 additions & 28 deletions app/requirements.txt

This file was deleted.

4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ services:
css:
image: node:14
container_name: css_processor
working_dir: /app/app
working_dir: /app
volumes:
- .:/app
command: ["npm", "run", "create-css"]

volumes:
postgres_data:
postgres_data:
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"dependencies": {
"@popperjs/core": "^2.11.8",
"flowbite": "^2.5.2"
"tailwindcss": "^3.4.14"
},
"scripts": {
"create-css": "npx tailwindcss -i ./static/src/input.css -o ./static/css/main.css --watch"
}
}
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ matplotlib
seaborn
dbt
dbt-postgres
psycopg2
psycopg2-binary
telethon
sqlalchemy
Expand Down

0 comments on commit 2d8d37d

Please sign in to comment.