From bbefda37a962448c4e30a9b67fbf85c5697f2b29 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Thu, 17 Jun 2021 22:58:15 +0000 Subject: [PATCH] Add Dockerfile Signed-off-by: William Brawner --- Dockerfile | 9 +++++++++ vue.config.js | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b3b4d94 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/vue.config.js b/vue.config.js index 4047ed2..17db9e4 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,5 +1,7 @@ +const ASSET_PATH = process.env.ASSET_PATH || '/ffc/'; + module.exports = { - publicPath: "/ffc/", + publicPath: ASSET_PATH, transpileDependencies: ["vuetify"], pwa: { themeColor: "#363636",