Change dockerfile to build from local source

This commit is contained in:
hgw 2023-10-05 11:28:00 +00:00
parent b87b1a1c85
commit 000c009eef
2 changed files with 20 additions and 2 deletions

View File

@ -1 +1,18 @@
config/
.vscode/
config/
coverage/
dist/
node_modules/
public/
.browserslistrc
.editorconfig
.eslintignore
.eslintrc.cjs
.gitattributes
.gitignore
.npmrc
.prittierignore
LICENSE
README.md
README.old
SECURITY.md

View File

@ -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 && \