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

Revert "some changes" #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
build:
context: ./client
ports:
- "3000:3000"
- "3000:3000" # For frontend
volumes:
- ./client:/app
stdin_open: true
Expand Down
14 changes: 7 additions & 7 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire project into the container
COPY . /app/

# Set environment variables from build arguments
# # Set environment variables from build arguments
# ARG DJANGO_SECRET_KEY
# ARG DJANGO_DEBUG
# ARG EMAIL_HOST_USER
# ARG EMAIL_HOST_PASSWORD
# ARG GOOGLE_API_KEY

# Set environment variables in the container
ENV DJANGO_SECRET_KEY=$DJANGO_SECRET_KEY
ENV DJANGO_DEBUG=$DJANGO_DEBUG
ENV EMAIL_HOST_USER=$EMAIL_HOST_USER
ENV EMAIL_HOST_PASSWORD=$EMAIL_HOST_PASSWORD
ENV GOOGLE_API_KEY=$GOOGLE_API_KEY
# ENV DJANGO_SECRET_KEY=$DJANGO_SECRET_KEY
# ENV DJANGO_DEBUG=$DJANGO_DEBUG
# ENV EMAIL_HOST_USER=$EMAIL_HOST_USER
# ENV EMAIL_HOST_PASSWORD=$EMAIL_HOST_PASSWORD
# ENV GOOGLE_API_KEY=$GOOGLE_API_KEY

# Run Django migrations and collect static files (if needed)
RUN python manage.py migrate
RUN python manage.py collectstatic --noinput
# RUN python manage.py collectstatic --noinput

# Start the server
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "server.wsgi:application"]