Skip to content
Snippets Groups Projects
Commit 7ee06383 authored by Matteo Parrucci's avatar Matteo Parrucci
Browse files

moved back build to dockerfile

parent 3b10fa57
No related branches found
No related tags found
No related merge requests found
...@@ -4,10 +4,11 @@ RUN apt-get update && apt-get install -y curl git xsel ...@@ -4,10 +4,11 @@ RUN apt-get update && apt-get install -y curl git xsel
RUN mkdir -p /usr/src/app RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app WORKDIR /usr/src/app
RUN npm install -g npm RUN npm install -g npm serve
ENV CLI_WIDTH 80 ENV CLI_WIDTH 80
RUN git clone https://github.com/parruc/librephotos-frontend.git /usr/src/app RUN git clone https://github.com/parruc/librephotos-frontend.git /usr/src/app
RUN npm ci RUN npm ci
RUN npm build
EXPOSE 3000 EXPOSE 3000
......
...@@ -9,10 +9,7 @@ then ...@@ -9,10 +9,7 @@ then
echo "develompent running frontend" echo "develompent running frontend"
npm run start npm run start
else else
echo "production building frontend"
npm install -g serve
npm run build
echo "productions running frontend" echo "productions running frontend"
serve build -d -l 3000 serve build -d -l 3000
fi fi
# DANGEROUSLY_DISABLE_HOST_CHECK=true HOST=0.0.0.0 npm start # DANGEROUSLY_DISABLE_HOST_CHECK=true HOST=0.0.0.0 npm start
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment