From 6e4b115b892f8b7bd9641869808f9ee9c589d77d Mon Sep 17 00:00:00 2001 From: Shiham Abdul Rahman Date: Tue, 20 Dec 2022 23:58:16 +0500 Subject: [PATCH] node is gay, alok is gay for using node --- Dockerfile | 1 + README.md | 1 - buildfiles/frontend-env | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 buildfiles/frontend-env diff --git a/Dockerfile b/Dockerfile index cc10a78..83ae2b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,7 @@ RUN source ~/.profile && source ~/.bashrc \ && wget -O words.txt https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt # configure frontend +COPY buildfiles/frontend-env /root/okiba-org-frontend/.env.local RUN source ~/.profile && source ~/.bashrc \ && cd /root/okiba-org-frontend ; pnpm install ; pnpm build ; cd - \ && mv /root/okiba-org-frontend/dist/* /var/www/html/ \ diff --git a/README.md b/README.md index 8094745..9268460 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ services: image: git.shihaam.dev/dockerfiles/okiba volumes: - $PWD/backend-env:/root/okiba-org-backend/.env - - $PWD/frontend-env:/var/www/html/.env.local - $PWD/logs/npm:/root/.npm/_logs/ - $PWD/logs/nginx:/var/log/nginx/ - $PWD/data/:/root/okiba-org-backend/data diff --git a/buildfiles/frontend-env b/buildfiles/frontend-env new file mode 100644 index 0000000..59c2a6e --- /dev/null +++ b/buildfiles/frontend-env @@ -0,0 +1 @@ +VITE_SERVER_URL=https://okiba.alk.pw