diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 650b3e0d9d76f0755103f3d0eb9ee824f2bbe988..61a2f6fbdff8b91d58e4006557158d52002a192c 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -4,10 +4,11 @@ RUN apt-get update && apt-get install -y curl git xsel RUN mkdir -p /usr/src/app WORKDIR /usr/src/app -RUN npm install -g npm +RUN npm install -g npm serve ENV CLI_WIDTH 80 RUN git clone https://github.com/parruc/librephotos-frontend.git /usr/src/app RUN npm ci +RUN npm build EXPOSE 3000 diff --git a/frontend/entrypoint.sh b/frontend/entrypoint.sh index f39a40f0731f5946f6811d82291efa32165992cf..9bae3789ce32a6328f937c179c220454d46c604e 100755 --- a/frontend/entrypoint.sh +++ b/frontend/entrypoint.sh @@ -9,10 +9,7 @@ then echo "develompent running frontend" npm run start else - echo "production building frontend" - npm install -g serve - npm run build echo "productions running frontend" serve build -d -l 3000 fi -# DANGEROUSLY_DISABLE_HOST_CHECK=true HOST=0.0.0.0 npm start \ No newline at end of file +# DANGEROUSLY_DISABLE_HOST_CHECK=true HOST=0.0.0.0 npm start