Commit graph

24 commits

Author SHA1 Message Date
Michael Manganiello
a653181ea8
Improve Docker layer caching for Go dependencies (#560)
Running `go mod download` before copying the entire project to the
Docker image avoids dependencies from being re-downloaded every time any
file is modified, and `docker build` runs again.

This follows the steps detailed in the official Docker guide for Go
images:
https://docs.docker.com/language/golang/build-images/#create-a-dockerfile-for-the-application

Also, `GO111MODULE` doesn't make any difference for the supported
Go versions, so it can be removed from the Dockerfile.
2023-05-23 11:54:02 +09:00
Junoh Moon
2a11ca13a3
Add mime.types to docker container to select charset properly (#547)
* Add charset to content type in getHandler

Add charset to content type in the getHandler function to fix CJK-letter related issues.
If the content type is empty after trimming, set it to "text/plain; charset=utf-8".

* Add mailcap and mime.types to transfer.sh container

This commit includes /etc/mime.types file to the container, which is necessary to properly select the charset using MIME typing during file upload.

For more information, read https://github.com/dutchcoders/transfer.sh/pull/545#issuecomment-1528712181

---------

Co-authored-by: Andrea Spacca <andrea.spacca@gmail.com>
2023-05-19 13:09:37 +09:00
Michael Manganiello
eecf529138
Dockerfile: Use Go 1.20 by default (#550)
Use Go 1.20 by default in Dockerfile

Updating the default Go version used in the Dockerfile, to the latest
one supported by the project at the moment.

Also, Go `1.17` support was removed in
9f1fe62e05
2023-05-11 18:23:58 +02:00
am97
31520b1afd
Add /tmp dir to Docker image (#506)
fixes #462

Co-authored-by: Andrés Maldonado <maldonado@codelutin.com>
2022-08-31 08:07:29 +02:00
jeanluc
bb0891cd7d
Docker: Allow selection of (unprivileged) UID/GID at build time (#418)
* Docker: use custom non-root UID/GID (build-arg)
2022-04-03 14:55:15 +02:00
Andrea Spacca
96723b2685 fix go1.16, add go1.17 2021-10-26 19:34:40 +02:00
Andrea Spacca
ca17555c22 forgot dockerfile 2021-07-19 21:03:41 +02:00
Andrea Spacca
7ea65c5a24 go get -u, go build ldflags, docker tag, inline handler 2021-02-19 14:50:40 +01:00
Andrea Spacca
c8497fb27d
Revert "ISSUE-313-BUILDX" 2020-06-14 20:01:38 +02:00
Andrea Spacca
18f4b42cf1 ISSUE-313-BUILDX 2020-06-14 19:53:36 +02:00
Andrea Spacca
92055f1b3c
Merge pull request #274 from eksoverzero/os_and_arch
Remove explicit OS and Arch builds
2020-05-17 20:12:38 +02:00
Andrea Spacca
0411db0443 Min go 1.13 required 2020-03-15 19:46:22 +01:00
Steven Eksteen
9297c253aa Remove explicit OS and Arch builds
This could allow multi-arch supporting using `docker buildx`
2019-11-13 21:19:04 +02:00
Alexander Lauster
818e5bc444 Add SSL CA Certificates to the image to allow access to S3 Buckets with active HTTPS 2019-06-23 13:03:31 +02:00
Douglas Pessoa
8c91a2284a Update Dockerfile generating smaller image 2019-06-04 17:09:16 +00:00
Andrea Spacca
cc401433a6 ISSUE-203 2019-05-11 14:42:59 +02:00
Berkant
1ffd3d0c49 removed redundant parameter in expose instruction. (#173) 2018-10-28 19:40:30 +01:00
ahxxm
3ca36f8c9c update dockerfile (#157)
* dockerfile: use multistage build, add dockerfile to ignore

* gdrive: supports only oauth 2.0 client id json file for now
2018-09-22 10:55:02 +02:00
cglewis
9fc9d1fca4 MAINTAINER is deprecated, using LABEL now 2017-10-31 18:24:12 -07:00
TheAssassin
f6c91c85fe Switch to alpine base image
This drastically decreases the overall image size. Quick comparison:

```
# Image fetched from Docker Hub
dutchcoders/transfer.sh   latest              a875ed5dfa56        5 months ago        704MB
# Image just built
dutchcoders/transfer.sh   latest              a220c49297eb        4 minutes ago       269MB
```
2017-08-29 20:08:34 +02:00
Remco
9541414476 Update Docker build 2017-03-22 22:28:05 +01:00
Remco
5061fb96f5 added profiling 2016-05-19 17:36:44 +02:00
Remco
83c7ef67ca fixes #13, allows parameters after docker run command 2014-12-08 14:11:35 +01:00
Remco
6b251ec7a8 docker, previews, tor, bugfixes
* implemented docker
* added previews (markdown, html, text, video, audio)
* added tor support
* several bugfixes
2014-11-13 21:41:43 +01:00
Renamed from transfersh-server/Dockerfile (Browse further)