Fixed Dockerfile and run for frontend builds

This commit is contained in:
frikky
2022-01-10 16:35:29 +01:00
parent 33b46e3713
commit b140b136b1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package.json /usr/src/app/package.json COPY package.json /usr/src/app/package.json
RUN yarn config set "strict-ssl" false -g
RUN yarn install RUN yarn install
# copy only required files to not trigger rebuilding every time # copy only required files to not trigger rebuilding every time
+1 -1
View File
@@ -5,7 +5,7 @@ docker rmi frikky/shuffle:frontend
echo "Running build for website" echo "Running build for website"
#sudo npm run build #sudo npm run build
docker build . -t frikky/shuffle:frontend docker build . -t ghcr.io/frikky/shuffle-frontend:nightly
echo "Starting server" echo "Starting server"
# Rerun build locally for it to update :) # Rerun build locally for it to update :)