Skip to content

Commit 0fc512e

Browse files
committed
Add Dockerfile and CMD to dockercompose
1 parent b3449e5 commit 0fc512e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You can set up your local environment natively or using `docker`, check out the
3232

3333
Example of running all the checks with docker:
3434
```bash
35-
docker-compose run --rm package bash -c "pipenv run mypy meilisearch && pipenv run pylint meilisearch && pipenv run pytest tests"
35+
docker-compose run package
3636
```
3737

3838
To install dependencies:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ FROM python:3.8.4-buster
33
COPY Pipfile .
44
COPY Pipfile.lock .
55

6-
RUN apt-get update \
7-
&& apt-get install -y --no-install-recommends gcc
6+
RUN apt-get update -y
87

98
# Install pipenv and compilation dependencies
109
RUN pip3 install pipenv
1110
RUN pipenv install --dev
11+
CMD pipenv run mypy meilisearch && pipenv run pylint meilisearch && pipenv run pytest tests

0 commit comments

Comments
 (0)