fucking arround with docker compose ...

This commit is contained in:
zwnk 2025-01-16 20:29:24 -03:00
parent a3f66a3cb4
commit ac58014791
2 changed files with 9 additions and 9 deletions

View file

@ -1,14 +1,12 @@
# frontend/Dockerfile
FROM node:20 FROM node:20
RUN mkdir /app
WORKDIR /app WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . . COPY . .
RUN chmod 755 -R *
RUN npm install
EXPOSE 5173 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"]

2
entrypoint.sh Normal file
View file

@ -0,0 +1,2 @@
#/bin/bash
npm run dev -- --host 0.0.0.0