Browse Source

docker: fix unexpected package version due to incomplete work tree

Fabian Peter Hammerle 5 years ago
parent
commit
ca0c7bac9c
3 changed files with 11 additions and 5 deletions
  1. 9 4
      .dockerignore
  2. 1 0
      .gitignore
  3. 1 1
      Dockerfile

+ 9 - 4
.dockerignore

@@ -1,4 +1,9 @@
-*
-!./.git
-!./pyftpd_sink
-!./setup.py
+*.swp
+/*.egg-info/
+/.eggs/
+/.pytest_cache/
+/Pipfile
+/Pipfile.lock
+/__pycache__/
+/build/
+/dist/

+ 1 - 0
.gitignore

@@ -1 +1,2 @@
+.*.swp
 /dist

+ 1 - 1
Dockerfile

@@ -15,7 +15,7 @@ ENV FTP_PASSIVE_PORT 62121
 EXPOSE $FTP_CONTROL_PORT $FTP_PASSIVE_PORT
 
 COPY . /pyftpd-sink
-RUN pip install --user --upgrade /pyftpd-sink
+RUN pip install --user /pyftpd-sink
 
 # TODO set masquerade address for passive mode
 CMD ["pyftpd-sink", "--root-dir", "/sink"]