-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unused `.env.sample` file * Update some comments
- Loading branch information
Showing
4 changed files
with
15 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
#!/bin/sh | ||
|
||
cd /app | ||
npm run build | ||
# This script builds the production application at container runtime before serving it | ||
# via webserver. | ||
# This is enable the use of environment variables in the production container. | ||
# As VueJS bundles the environment variables value into the application, | ||
# see https://cli.vuejs.org/guide/mode-and-env.html#environment-variables | ||
|
||
http-server dist -p 8081 | ||
# An alternative approach would be to use a tool like: | ||
# https://import-meta-env.org/ | ||
|
||
cd /app | ||
npm run build | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Dockerfile for MPM frontend production docker image | ||
# ----------------------------------------------------------------------------- | ||
# This Dockerfile sets up the environment to build and run the frontend. | ||
# The main objective is to create a production-ready Docker image | ||
# that serves the frontend using http-server. | ||
# | ||
# The approach taken here is to use an entrypoint script as a workaround to handle | ||
# the loading of environment variables. This ensures that any dynamic environment | ||
# variables required at runtime are correctly | ||
# applied before starting the server. | ||
http-server dist -p 8081 |
This file was deleted.
Oops, something went wrong.