Skip to content

Use docker for building/running the via app#209

Open
flori wants to merge 7 commits intothe-via:mainfrom
flori:use-docker-for-building-and-running-via-app
Open

Use docker for building/running the via app#209
flori wants to merge 7 commits intothe-via:mainfrom
flori:use-docker-for-building-and-running-via-app

Conversation

@flori
Copy link
Copy Markdown

@flori flori commented Nov 21, 2023

This might be useful for people that want to build and run the via app without having to install the dependencies directly on their local machine rather than just using the official web site.

Copy link
Copy Markdown

@antonkesy antonkesy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

might be a good idea to also include some information in the documentation on "how to run the container"

@flori flori force-pushed the use-docker-for-building-and-running-via-app branch from cf55267 to d78bed3 Compare February 4, 2025 09:07
@flori flori force-pushed the use-docker-for-building-and-running-via-app branch 4 times, most recently from b1d6664 to 66cb710 Compare August 14, 2025 14:31
and modify npm start command.

- Update `FROM node:21-alpine` to `FROM node:23-alpine`.
- Update `RUN sed -i ... package.json` to replace `vite --force` with `vite --force --host`.
- Update `CMD [ "npm", "start" ]` to `CMD [ "npm", "run", "dev" ]`.
to use 'unless-stopped' restart policy.
- Updated base image from `node:23-alpine` to `node:24-alpine`
- This changes the Node.js version used for building and running the application
- The Alpine Linux variant is maintained for minimal image size
- Added detailed instructions for running the application with Docker
  Compose
- Included steps for starting, accessing, and stopping the application
- Documented the Docker Compose configuration with Node.js **24-alpine**
  Alpine image
- Added build instructions with `docker compose build --no-cache`
- Mentioned automatic restart policy and optimized development
  environment
- Added `/dist` directory to `.dockerignore` file to prevent it from
  being included in Docker builds
- This ensures that compiled distribution files are not part of the
  container image
- The change helps keep container images smaller and cleaner by
  excluding build artifacts
@flori flori force-pushed the use-docker-for-building-and-running-via-app branch from 00e6e58 to 4b7410a Compare February 13, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants