fucking arround with docker compose ...
This commit is contained in:
parent
a3f66a3cb4
commit
ac58014791
2 changed files with 9 additions and 9 deletions
16
Dockerfile
16
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"]
|
||||
|
|
2
entrypoint.sh
Normal file
2
entrypoint.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#/bin/bash
|
||||
npm run dev -- --host 0.0.0.0
|
Loading…
Reference in a new issue