Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

867 spring2024 data analysis with orm #877

Merged
merged 2 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM python:3.9

# Install Redis
RUN apt-get update && apt-get install -y redis-server

# Install redis-py
RUN pip install redis

# Expose the Redis port
FROM python:3.9

# Install Redis
RUN apt-get update && apt-get install -y redis-server

# Install redis-py
RUN pip install redis

# Expose the Redis port
EXPOSE 6379

# Set working directory
WORKDIR /app

# Copy Python script (assuming your Python script is named app.py)
COPY app.py .

# Start Redis server and run the Python script
CMD ["bash", "-c", "service redis-server start && python app.py"]

10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'

services:
my_project:
build:
context: .
ports:
- "6379:6379" # Map Redis port
volumes:
- ./app.py:/app/app.py
1 change: 1 addition & 0 deletions docs/DATA605
Submodule DATA605 added at 453447
Loading