-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #369 from oist/develop
Develop
- Loading branch information
Showing
6 changed files
with
45 additions
and
26 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
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
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
FROM python:3.9.7 | ||
FROM python:3.9.7-slim | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
RUN apt-get --allow-releaseinfo-change update | ||
RUN apt-get install -y git gcc g++ libgl1 | ||
COPY requirements.txt /app/requirements.txt | ||
|
||
RUN /usr/local/bin/python -m pip install --upgrade pip | ||
COPY ./requirements.txt ./ | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
RUN pip install pytest | ||
RUN apt-get --allow-releaseinfo-change update && \ | ||
apt-get install --no-install-recommends -y git gcc g++ libgl1 && \ | ||
pip3 install --no-cache-dir --upgrade pip && \ | ||
pip3 install --no-cache-dir -r /app/requirements.txt && \ | ||
pip3 install --no-cache-dir pytest && \ | ||
apt-get purge git -y && apt-get autoremove -y && apt-get clean && rm -rf /root/.cache/pip/* | ||
|
||
ENTRYPOINT ["python", "-m", "pytest", "-s", "."] | ||
WORKDIR /app | ||
ENTRYPOINT ["python3", "-m", "pytest", "-s", "."] |
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
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
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