Skip to content
Open
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
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Note: This image is also built in CircleCI, so limit references to internal repositories.
FROM python:3.7
### Build stage
FROM python:3.7 AS builder

# Create app directory
WORKDIR /usr/src/app
Expand All @@ -12,4 +13,9 @@ COPY . /usr/src/app
RUN pip install tox==3.15.0
RUN pip install -r requirements.txt

### Runtime stage
FROM python:3.7
COPY --from=builder /usr/src/app /usr/src/app
WORKDIR /usr/src/app

CMD ["make", "test"]