Compose: start dev server in frontend container

This commit is contained in:
wpetit 2020-02-17 12:40:19 +01:00
parent 56abb2c3c4
commit 2a72ac97ac
3 changed files with 14 additions and 1 deletions

11
Makefile Normal file
View File

@ -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

View File

@ -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

View File

@ -1 +1,3 @@
#!/bin/sh
npm start -- --host 0.0.0.0 --port 8000