From f99bcaa2696ceaa83b5169dca92aa50352fc3674 Mon Sep 17 00:00:00 2001 From: Manuel Lera-Ramirez Date: Mon, 18 Nov 2024 09:37:57 +0000 Subject: [PATCH] update dockerfile https://github.com/manulera/ShareYourCloning_frontend/issues/293 --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 444e3dc..15e54ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,11 +18,10 @@ RUN yarn build --base "$BASE_URL" FROM node:18-alpine WORKDIR /build COPY --from=builder /app/build . -RUN npm install http-server -g +RUN npm install http-server mime@4 -g -# Install curl (get mime.types) and envsubst (to to create config.json from config.env.json) -RUN apk add --no-cache curl envsubst -RUN curl https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types > mime.types +# Install envsubst (to create config.json from config.env.json) +RUN apk add --no-cache envsubst COPY ./docker_entrypoint.sh /build/docker_entrypoint.sh ENV BACKEND_URL=http://127.0.0.1:8000 CMD ["sh", "docker_entrypoint.sh"] \ No newline at end of file