Skip to content

Commit

Permalink
fix: Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldemylla committed Apr 5, 2024
1 parent 956880e commit b762b29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ FROM node:${NODE_VERSION}-${BASE_VERSION} as builder

WORKDIR /app

RUN apk --no-cache add git

COPY package.json yarn.lock ./

RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn install
RUN --mount=type=cache,target=/root/.yarn \
YARN_CACHE_FOLDER=/root/.yarn yarn install

COPY . ./

RUN yarn build

FROM nginx:alpine

COPY nginx.conf /etc/nginx/nginx.conf
FROM nginxinc/nginx-unprivileged:3.19-alpine

COPY --chown=nginx:nginx docker/nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=builder --chown=nginx:nginx /app/dist /usr/share/nginx/html/insights/
Expand All @@ -26,7 +27,6 @@ RUN mv /usr/share/nginx/html/insights/index.html /usr/share/nginx/html/insights/
&& cd /usr/share/nginx/html/insights/ \
&& ln -s /tmp/index.html


EXPOSE 8080
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit b762b29

Please sign in to comment.