Add Dockerfile

Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
William Brawner 2021-06-17 22:58:15 +00:00
parent 897c3b4ac1
commit bbefda37a9
2 changed files with 12 additions and 1 deletions

9
Dockerfile Normal file
View 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

View file

@ -1,5 +1,7 @@
const ASSET_PATH = process.env.ASSET_PATH || '/ffc/';
module.exports = {
publicPath: "/ffc/",
publicPath: ASSET_PATH,
transpileDependencies: ["vuetify"],
pwa: {
themeColor: "#363636",