From 000c009eef98cfc0f14328a01cd0df98f5ce3f12 Mon Sep 17 00:00:00 2001 From: hgw Date: Thu, 5 Oct 2023 11:28:00 +0000 Subject: [PATCH] Change dockerfile to build from local source --- .dockerignore | 19 ++++++++++++++++++- Dockerfile | 3 ++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 2ec5195d..803dd32a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,18 @@ -config/ \ No newline at end of file +.vscode/ +config/ +coverage/ +dist/ +node_modules/ +public/ +.browserslistrc +.editorconfig +.eslintignore +.eslintrc.cjs +.gitattributes +.gitignore +.npmrc +.prittierignore +LICENSE +README.md +README.old +SECURITY.md \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 4b80647c..f24b5749 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ RUN apk add --no-cache --virtual=build-dependencies build-base git python3-dev & USER node WORKDIR /var/opt/thelounge-src ENV THELOUNGE_HOME /var/opt/thelounge -RUN git clone https://git.supernets.org/supernets/thelounge.git --depth 1 . +COPY . . +#RUN git clone https://git.supernets.org/supernets/thelounge.git --depth 1 . RUN yarn install && \ NODE_ENV=production yarn build && \ yarn link && \