@ -23,7 +23,7 @@ services:
- network-frontend
frontend:
image: node:13.2.0
image: node:13.7.0
command: ["/src/frontend/dev-nuxt.sh"]
volumes:
- .:/src
@ -1,11 +1,11 @@
FROM node:13.2-alpine
FROM node:13.7-alpine
WORKDIR /app
COPY . /app/
RUN apk add -U --no-cache git python3 make g++ \
&& npm install -g npm@latest \
&& npm install \
&& npm run build \
# && npm install -g yarn@latest \
&& yarn install \
&& yarn build \
&& apk del --no-cache git make g++
@ -10,10 +10,10 @@ app="${root}/frontend"
if [[ ! -d node_modules/.bin ]]; then
echo "Installing dependencies"
npm install
yarn install
fi
echo "Starting frontend server"
npm run lintfix
npm run dev
yarn lintfix
yarn dev
)