Skip to content

Commit

Permalink
Move gcc installation before backend files addition
Browse files Browse the repository at this point in the history
This allows to not reinstall apk files when backend files change and the
new image is built.
  • Loading branch information
paskal authored and umputun committed Sep 20, 2024
1 parent 6cd5c45 commit cbf9a82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ ARG GIT_BRANCH
ARG SKIP_BACKEND_TEST
ARG BACKEND_TEST_TIMEOUT

# install gcc in order to be able to go test package with -race
RUN apk --no-cache add gcc libc-dev

ADD backend /build/backend
# to embed the frontend files statically into Remark42 binary
COPY --from=build-frontend /srv/frontend/apps/remark42/public/ /build/backend/app/cmd/web/
RUN find /build/backend/app/cmd/web/ -regex '.*\.\(html\|js\|mjs\)$' -print -exec sed -i "s|{% REMARK_URL %}|http://127.0.0.1:8080|g" {} \;
WORKDIR /build/backend

# install gcc in order to be able to go test package with -race
RUN apk --no-cache add gcc libc-dev

RUN echo go version: `go version`

# run tests
Expand Down

0 comments on commit cbf9a82

Please sign in to comment.