https://github.com/mustofa-id/sveltekit-docker-example
Dockerfile example for SvelteKit project
https://github.com/mustofa-id/sveltekit-docker-example
Last synced: 3 months ago
JSON representation
Dockerfile example for SvelteKit project
- Host: GitHub
- URL: https://github.com/mustofa-id/sveltekit-docker-example
- Owner: mustofa-id
- Created: 2023-04-14T00:34:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T02:30:16.000Z (over 2 years ago)
- Last Synced: 2025-04-06T20:33:21.138Z (6 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SvelteKit Docker Example
This repository provides an example Dockerfile and configuration for building a Docker image of a SvelteKit project. The Dockerfile includes instructions for installing dependencies, building the project, and serving it with a production server. This example can serve as a starting point for building and deploying SvelteKit applications using Docker.
Before building image, make sure to create `.env` file based on `.env.example`
```
cp .env.example .env
```Building image
```
docker build -t my-kit-app:1.0.0 .
```Running container
```
docker run --name my-app -p 8080:80 -e ORIGIN=http://my-app.com -d my-kit-app:1.0.0
```