Add Dockerfile
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
897c3b4ac1
commit
bbefda37a9
2 changed files with 12 additions and 1 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM node:latest as builder
|
||||||
|
COPY . /app
|
||||||
|
WORKDIR /app
|
||||||
|
ENV ASSET_PATH "/"
|
||||||
|
RUN npm install && \
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
FROM nginx:latest
|
||||||
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
@ -1,5 +1,7 @@
|
||||||
|
const ASSET_PATH = process.env.ASSET_PATH || '/ffc/';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
publicPath: "/ffc/",
|
publicPath: ASSET_PATH,
|
||||||
transpileDependencies: ["vuetify"],
|
transpileDependencies: ["vuetify"],
|
||||||
pwa: {
|
pwa: {
|
||||||
themeColor: "#363636",
|
themeColor: "#363636",
|
||||||
|
|
Loading…
Reference in a new issue