diff --git a/contrib/docker/multi-stage-frontend/Dockerfile b/contrib/docker/multi-stage-frontend/Dockerfile index 6c76c41715..0c492478d1 100644 --- a/contrib/docker/multi-stage-frontend/Dockerfile +++ b/contrib/docker/multi-stage-frontend/Dockerfile @@ -1,10 +1,5 @@ FROM node:12 AS build -# This dockerfile does not require the app to be built on the host machine. -# simply builds backstage in node image then transfers compiled files to nginx container. - -# You can build this image with `docker build -f Dockerfile.standalone -t backstage .` - RUN mkdir /app COPY . /app WORKDIR /app @@ -12,7 +7,7 @@ WORKDIR /app RUN yarn install RUN yarn workspace example-app build -# Contruct backstage image +# Contruct backstage-frontend image FROM nginx:mainline RUN apt-get update && apt-get -y install jq && rm -rf /var/lib/apt/lists/* diff --git a/contrib/docker/multi-stage-frontend/README.md b/contrib/docker/multi-stage-frontend/README.md index 4ba09481be..b6ae4fdc6c 100644 --- a/contrib/docker/multi-stage-frontend/README.md +++ b/contrib/docker/multi-stage-frontend/README.md @@ -9,11 +9,11 @@ You can simply run the following command to build backstage. ``` # Make sure you are in the root directory of backstage then run -docker build -t backstage -f ./contrib/docker/multi-stage-frontend/Dockerfile . +docker build -t backstage-frontend -f ./contrib/docker/multi-stage-frontend/Dockerfile . ``` After a successful build, You can simply run backstage frontend with the following command. ``` -docker run -it --rm -p 3080:80 backstage +docker run -it --rm -p 3080:80 backstage-frontend ```