Browse Source

fix build broken by COPY peculiarity

COPY [--chown=<user>:<group>] <src>... <dest>
The <src> path must be inside the context of the build; you cannot COPY ../something /something,
because the first step of a docker build is to send the context directory (and subdirectories)
to the docker daemon.
If <src> is a directory, the entire contents of the directory are copied, including filesystem metadata.
!!!!The directory itself is not copied, just its contents.!!!!

Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
master
Nagy Károly Gábriel 6 years ago
parent
commit
150d4e9577
Signed by: karasz
GPG Key ID: C6BA1070A8CBDA0C
  1. 2
      Dockerfile
  2. 0
      files/binnit/binnit
  3. 0
      files/binnit/binnit.cfg
  4. 0
      files/binnit/html/index.html
  5. 0
      files/binnit/html/paste.html
  6. 0
      files/binnit/static/index.css
  7. 0
      files/binnit/static/paste.css
  8. 0
      files/binnit/static/prism.css
  9. 0
      files/binnit/static/prism.js

2
Dockerfile

@ -1,7 +1,7 @@
FROM scratch FROM scratch
# Copy everything # Copy everything
COPY binnit / COPY ./files /
# Set our port # Set our port
EXPOSE 80 EXPOSE 80

0
binnit/binnit → files/binnit/binnit

0
binnit/binnit.cfg → files/binnit/binnit.cfg

0
binnit/html/index.html → files/binnit/html/index.html

0
binnit/html/paste.html → files/binnit/html/paste.html

0
binnit/static/index.css → files/binnit/static/index.css

0
binnit/static/paste.css → files/binnit/static/paste.css

0
binnit/static/prism.css → files/binnit/static/prism.css

0
binnit/static/prism.js → files/binnit/static/prism.js

Loading…
Cancel
Save