From d0477783db70eae481347b6557b93558e3a2ef39 Mon Sep 17 00:00:00 2001 From: "denisdalmeida04@gmail.com" Date: Wed, 13 Jan 2021 17:26:17 +0100 Subject: [PATCH] denisjunior --- .circleci/config.yml | 7 ++++--- Dockerfile | 13 +++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 Dockerfile 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