Commit cb4f098b authored by Nicholas J Anderson's avatar Nicholas J Anderson

Missing import, more stable dockerizing

parent b730627d
Pipeline #4458 passed with stage
in 3 minutes and 41 seconds
......@@ -6,7 +6,7 @@ COPY requirements.txt /usr/local/mason-today/requirements.txt
RUN pip install --no-cache-dir -r /usr/local/mason-today/requirements.txt
WORKDIR /usr/local/mason-today
ENV PYTHONPATH=/usr/local/mason-today/__init__.py
ENV FLASK_APP=mason-today
ENV PYTHONPATH=/usr/local/mason-today/
ENV FLASK_APP=/usr/local/masont-today/__init__.py
ENV FLASK_DEBUG=0
CMD [ "flask", "run" ]
---
version: '3.7'
network:
networks:
front:
back:
internal: yes
service:
services:
api:
image: registry.srct.gmu.edu/srct/mason-today-web/api:latest
image: registry.srct.gmu.edu/srct/mason-today-web/api:dockerize
ports:
- 3000:3000
environment:
FLASK_DEBUG: 0
FLASK_DEBUG: 1
FLASK_APP: /usr/local/mason-today/__init__.py
REDIS_HOST: db
network:
networks:
front:
back:
db:
image: redis
network:
networks:
back:
# python imports
import datetime
import os
# other imports
import redis
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment