From ac580147917e3da681ce2bf4975b6c97632bf72e Mon Sep 17 00:00:00 2001 From: zwnk Date: Thu, 16 Jan 2025 20:29:24 -0300 Subject: [PATCH] fucking arround with docker compose ... --- Dockerfile | 16 +++++++--------- entrypoint.sh | 2 ++ 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 entrypoint.sh 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