-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6170e9c
commit 41d0978
Showing
2 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Use the same base image as the main svc container | ||
FROM python:3.9.1 | ||
|
||
# Set the user to non-root | ||
# RUN useradd -ms /bin/bash appuser -u 1000 | ||
|
||
# USER appuser | ||
|
||
# Set environment variables | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /workspace | ||
|
||
|
||
# copying the requirements.txt file to the work directory | ||
COPY requirements*.txt ./ | ||
|
||
# Installing the python requirement on the container | ||
RUN pip install -r requirements-dev.txt | ||
|
||
# Copy all local files to the container | ||
COPY . ./ | ||
|
||
# Run tests | ||
CMD ["pytest"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters