Compose: start dev server in frontend container
This commit is contained in:
parent
56abb2c3c4
commit
2a72ac97ac
|
@ -0,0 +1,11 @@
|
|||
up:
|
||||
docker-compose up --build
|
||||
|
||||
down:
|
||||
docker-compose down -v
|
||||
|
||||
backend-shell:
|
||||
docker-compose exec backend /bin/bash
|
||||
|
||||
frontend-shell:
|
||||
docker-compose exec frontend /bin/bash
|
|
@ -10,7 +10,7 @@ ENV HTTPS_PROXY=
|
|||
ENV http_proxy=
|
||||
ENV https_proxy=
|
||||
|
||||
RUN apk add --no-cache nodejs bash
|
||||
RUN apk add --no-cache nodejs bash npm
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
npm start -- --host 0.0.0.0 --port 8000
|
Loading…
Reference in New Issue