Skip to content

Service - Serves project binary assets through HTTP(s).

License

Notifications You must be signed in to change notification settings

starpep-web/static-file-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service - Static File Server

This repository contains the code to build a nginx HTTP(s) server to serve the project's assets.

Make sure to check assets to read how to acquire the assets for local development. This image is used by env-development, so there's a chance you might need to have the assets on your machine to develop the other services.

Requirements

In order to develop for this repository you need:

Development

First, clone this repository:

git clone https://github.com/starpep-web/static-file-server

Content

Head over to assets to check how to acquire the assets.

  • Data assets should be mounted as a volume in /files. These are the files found in assets.
  • Temporary files should be mounted as a volume in /tmp/files. This should be a folder managed by api-bio to serve exports through this server.

Building

If you're developing this on your local machine, consider building the Docker image with the following command:

docker build -t local-starpep/static-file-server:latest .

You can create a new container to try it out with the following command:

docker run -it --rm -p 8080:8080 -v $PATH_TO_FILE_ASSETS:/files -v $PATH_TO_TEMP_FOLDER:/tmp/files local-starpep/static-file-server:latest

And done, the service should be reachable at http://localhost:8080.

Production

Consider checking this docker-compose.yml for an example on how to run this image in production.

About

Service - Serves project binary assets through HTTP(s).

Resources

License

Stars

Watchers

Forks

Packages