You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run docker build -f src/main/docker/Dockerfile.jvm -t quarkus/jscompressor .
Run docker run -d -v /home/${username}/${volumes}:/volume:Z -p 8080:8080 localhost/quarkus/jscompressor:latest
Native based
Clone the repository
Run mvn clean package -Pnative
Run docker build -f src/main/docker/Dockerfile.native -t quarkus/jscompressor .
Run docker run -d -v /home/${username}/${volumes}:/volume:Z -p 8080:8080 localhost/quarkus/jscompressor:latest
Note: You should be familiar with such topics like Docker root/rootless containers, selinux and such topics. For
instance, if you get permission denied error, you should check the selinux context of the volume. That is why I prefer
rootless Podman containers, that configure the context automatically.
Tips: If you are a mac user, check you build the native image for Linux. (docs docker buildx)
The application can be configured using the following environment variables:
MAX_DOWNLOAD_FILE_SIZE - Sets the maximum file/script size that can be uploaded to the server. Default is 1048576 bytes (1MB).
MAX_DOWNLOAD_URLS_PER_REQUEST - Sets the maximum number of URLs that can be uploaded to the server. Default is 10.
MAX_CACHE_DIR_SIZE - Sets the maximum size of the cache directory. Default is 1073741824 bytes (1GB). Once limit is reached, the oldest files will be deleted.
All of the above can be set in the application.properties file or provided as environment variables to the docker container.
OpenAPI
The application provides an OpenAPI specification at openapi.yaml
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.