From e373dd084f49afee9594e62c0ea66ebf2a606a03 Mon Sep 17 00:00:00 2001 From: BobChao87 Date: Tue, 27 Jul 2021 00:00:08 -0700 Subject: [PATCH] Correctly copy the static directory When you copy a directory, it copies the contents, but not the dir Related to Issue #25 --- Dockerfile | 1 + static/README.md | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 static/README.md diff --git a/Dockerfile b/Dockerfile index 8c8899db..2f661765 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ WORKDIR /oengus-webapp COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"] RUN npm ci --silent COPY ["nuxt.config.js", "vue-i18n.config.js", "./"] +COPY static ./static COPY --from=builder /oengus-webapp/.nuxt ./.nuxt EXPOSE 3000 CMD ["npm", "start"] diff --git a/static/README.md b/static/README.md deleted file mode 100644 index cf004353..00000000 --- a/static/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# STATIC - -**This directory is not required, you can delete it if you don't want to use it.** - -This directory contains your static files. -Each file inside this directory is mapped to `/`. -Thus you'd want to delete this README.md before deploying to production. - -Example: `/static/robots.txt` is mapped as `/robots.txt`. - -More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#static).