diff --git a/Dockerfile b/Dockerfile index 8855944..842bea2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,12 @@ -# frontend/Dockerfile FROM node:20 - +RUN mkdir /app WORKDIR /app - -COPY package*.json ./ - -RUN npm install - COPY . . - +RUN chmod 755 -R * +RUN npm install EXPOSE 5173 +# Change the CMD to see what's in the directory when it starts +#CMD ["sh", "-c", "ls -la && pwd && echo '---' && npm run dev -- --host 0.0.0.0"] +#CMD ["sleep","infinity"] -CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"] +#CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..b57c70b --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,2 @@ +#/bin/bash +npm run dev -- --host 0.0.0.0