diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..43a071c --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file diff --git a/misc/containers/frontend/Dockerfile b/misc/containers/frontend/Dockerfile index 055cc0c..5818cc4 100644 --- a/misc/containers/frontend/Dockerfile +++ b/misc/containers/frontend/Dockerfile @@ -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 diff --git a/misc/containers/frontend/docker-entrypoint.sh b/misc/containers/frontend/docker-entrypoint.sh index 1a24852..03e87d4 100644 --- a/misc/containers/frontend/docker-entrypoint.sh +++ b/misc/containers/frontend/docker-entrypoint.sh @@ -1 +1,3 @@ #!/bin/sh + +npm start -- --host 0.0.0.0 --port 8000 \ No newline at end of file