diff --git a/Dockerfile b/Dockerfile index fff02ff1..7537170d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,20 @@ -FROM node:lts-alpine -RUN apk add --no-cache --virtual=build-dependencies build-base git python3-dev && \ +FROM node:20-alpine +RUN apk add --no-cache --virtual=build-dependencies build-base git python3-dev py3-setuptools && \ apk add --no-cache yarn -USER node WORKDIR /var/opt/hardlounge-src ENV THELOUNGE_HOME /var/opt/hardlounge -COPY package.json yarn.lock . +COPY --chown=node:node package.json yarn.lock . +USER node RUN yarn install -COPY . . +COPY --chown=node:node . . RUN NODE_ENV=production yarn build && \ yarn link && \ yarn --non-interactive cache clean && \ ln -s /var/opt/hardlounge-src/index.js /var/opt/hardlounge-src/hardlounge USER root -RUN apk del --purge build-dependencies +RUN apk del --purge build-dependencies && \ + mkdir -p /var/opt/hardlounge && \ + chown -R node:node /var/opt/hardlounge USER node EXPOSE 9000 CMD ["/var/opt/hardlounge-src/hardlounge", "start"] \ No newline at end of file diff --git a/client/components/NetworkForm.vue b/client/components/NetworkForm.vue index d55698f5..06f16f2c 100644 --- a/client/components/NetworkForm.vue +++ b/client/components/NetworkForm.vue @@ -206,122 +206,143 @@ -

User preferences

-
- - -
-