Skip to content

Commit 6b8edbe

Browse files
[change] Add .dockerignore and remove WORKDIR from Dockerfile
1 parent cf37332 commit 6b8edbe

2 files changed

Lines changed: 37 additions & 2 deletions

File tree

.dockerignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Python bytecode
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# Virtual environments
7+
.venv/
8+
venv/
9+
env/
10+
ENV/
11+
12+
# Packaging / build artifacts
13+
build/
14+
dist/
15+
*.egg-info/
16+
.eggs/
17+
pip-wheel-metadata/
18+
19+
# Test / coverage / type-check caches
20+
.pytest_cache/
21+
.coverage
22+
.coverage.*
23+
.mypy_cache/
24+
.pyre/
25+
.ruff_cache/
26+
27+
# Git / editor / OS files
28+
.git/
29+
.gitignore
30+
.gitattributes
31+
.vscode/
32+
.idea/
33+
.DS_Store
34+
Thumbs.db
35+
36+
docker-compose*.yml
37+
Dockerfile*

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ RUN apt-get update && \
2828
shared-mime-info \
2929
&& rm -rf /var/lib/apt/lists/*
3030

31-
WORKDIR /opt/openwisp
32-
3331
# Install test requirements first so this layer is cached separately
3432
# from the source code copy below.
3533
COPY requirements-test.txt .

0 commit comments

Comments
 (0)