You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
I'm using docker compose to build my app and deploy to an EC2 instance.
In dev mode and using nuxt start everything works fine on my local machine which is mac.
I wasn't using vite before and due to the slow build times over and over again deploying code changes to reproduction I decided to give vite a go. It's very quick on my local machine compared to before.
Unfortunately I can't figure out how to set permission access to '/app/node_modules/.cache/vite/client'
FROM node:14.15.5
# make the 'app' folder the current working directory
WORKDIR /app/
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . /app/
RUN mkdir - p node_modules / .cache && chmod - R 777 node_modules / .cache
RUN npm i -g npm@latest
RUN npm config set unsafe - perm true
RUN npm config set save-prefix=''
# If building from scratch unhighlight the below.
RUN npm install --prefer-offline --no-audit
RUN npm rebuild node-sass
RUN npm rebuild esbuild
#Set environment variables
ENV SENTRY_DISABLED=true
ENV HOST 0.0.0.0
# expose port 3000 to the host
EXPOSE 3000
ENTRYPOINT ["sh","docker/start_prod.sh"]
start_prod.sh
#!/bin/bash
# run the production server
npm run build
npm run start
docker-compose build works fine. It's when you try docker-compose up and nuxt is generating a error occurs for permissions in the cache
Has anyone experienced this issue before or have a working example on ec2?
Versions
"nuxt-vite": "^0.1.1",
"nuxt": "2.15.7"
I'm using docker compose to build my app and deploy to an EC2 instance.
In dev mode and using nuxt start everything works fine on my local machine which is mac.
I wasn't using vite before and due to the slow build times over and over again deploying code changes to reproduction I decided to give vite a go. It's very quick on my local machine compared to before.
Unfortunately I can't figure out how to set permission access to '/app/node_modules/.cache/vite/client'
I've tried numerous solutions online but no luck.
Here's my setup
docker-compose-prod.yaml
Dockerfile.prod
start_prod.sh
docker-compose build works fine. It's when you try docker-compose up and nuxt is generating a error occurs for permissions in the cache
Has anyone experienced this issue before or have a working example on ec2?
nuxt config
The text was updated successfully, but these errors were encountered: