Comments (6)
hello @luckman212 , thanks for reporting this bug
the problem is that the build command on docker file does not work properly, with git describe --tags
failing since it's run not inside a git repo
from transfer.sh.
Is there any workaround you could suggest? What about just hardcoding the current version in a VERSION
file and having the Dockerfile read from that?
from transfer.sh.
You can use watchtower to achieve the same without having to write a script :)
from transfer.sh.
Ok I'll look into that, thanks
from transfer.sh.
I believe the issue is that ".git" is in .dockerignore. When COPY . .
is run, the files in .dockerignore are skipped. Since the .git directory isn't copied into the docker image the command that sets the version (git describe --tags
) fails. Removing ".git" from .dockerignore fixes the issue for me.
$ docker run --rm transfer.sh version
transfer.sh v1.6.1-1-gd4f1b84: Easy file sharing from the command line
I don't believe removing .git from the .dockerignore file is the correct solution for the repo though because then the container will be larger.
from transfer.sh.
I don't believe removing .git from the .dockerignore file is the correct solution for the repo though because then the container will be larger.
the final image is based on scratch, we can remove .git from the .dockerignore without having a bigger image. the .git folder will be copied only in the build stage of the image
from transfer.sh.
Related Issues (20)
- IP_FILTERLIST_BYPASS_HTTP_AUTH not working ? HOT 4
- Could not save metadata HOT 13
- unable to define clamav-host correctly HOT 1
- romanian ips are blocked from accessing transfer.sh HOT 3
- Transfer.sh seems to down for a while now! HOT 1
- Unable HOT 2
- Upload failed for the last few weeks HOT 1
- Uploading empty file: Permission denied HOT 7
- Gdrive credential problem HOT 4
- Transfer.sh Down? HOT 1
- Retain multiple file endings such as .tar.gz
- Inaccessible
- transfer.sh site not accessible HOT 1
- Site offline HOT 2
- 500 Internal Server Error HOT 1
- How to enter the container HOT 1
- How to obtain the upload results? HOT 1
- Official instance: upload fails with 500
- Replace `random-token` with `random word`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transfer.sh.