1
0
mirror of https://github.com/falk-werner/webfuse-example synced 2025-12-17 20:01:50 +00:00

use webfuse-js

This commit is contained in:
Falk Werner
2020-04-11 10:56:17 +02:00
parent ada38be00c
commit c85e145c46
16 changed files with 107 additions and 313 deletions

View File

@@ -19,8 +19,6 @@ RUN set -x \
libconfig-dev \
libpam0g-dev
COPY www /var/www
ARG PARALLELMFLAGS=-j2
ARG DUMB_INIT_VERSION=1.2.2
@@ -124,6 +122,25 @@ RUN set -x \
COPY webfused.conf /etc
ARG NPM_VERSION=">=6.14.0 <7.0.0"
ARG NODEJS_VERSION=12
RUN set -x \
&& apt update \
&& apt upgrade -y \
&& apt install --yes --no-install-recommends \
nodejs \
npm \
&& npm install -g npm@"${NPM_VERSION}" \
&& npm install -g n \
&& n "${NODEJS_VERSION}"
COPY www /usr/local/src/www
RUN set -x \
&& cd /usr/local/src/www \
&& npm run build \
&& mkdir -p /var/www \
&& cp -r ./dist/. /var/www/
ARG USERID=1000
RUN set -x \
&& useradd -u "$USERID" -ms /bin/bash user