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
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
......
......@@ -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
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