diff --git a/.circleci/config.yml b/.circleci/config.yml index 435a7a6..1091492 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,10 +6,11 @@ workflows: - flask_tests: requires: - build + jobs: build: docker: - - image: circleci/python:3.6 + - image: circleci/python:3.6-buster-node-browsers steps: - checkout - restore_cahce: @@ -30,11 +31,11 @@ jobs: docker: - image: circleci/python:3.6-buster-node-browsers environment: - DATABASE_URL: postgresql://denis:denis@localhost:5432/postgres + DATABASE_URL: postgresql://denis:denis@localhost:5432/postgres?sslmode=disable CONDUIT_SECRET: 'something-really-secret' FLASK_APP: autoapp.py FLASK_DEBUG: 1 - - image: circleci/postgres:9.6.9-alpine + - image: circleci/postgres:9.6.9-alpine-ram environment: POSTGRES_USER: denis POSTGRES_PASSWORD: denis diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c8be564 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.6 + +WORKDIR /app +COPY . . + +ENV CONDUIT_SECRET='something-really-secret' +ENV FLASK_APP=autoapp.py +ENV FLASK_DEBUG=1 + +RUN pip install -r requirements/dev.txt + +EXPOSE 8000 +CMD python autoapp.py \ No newline at end of file