Skip to content

Commit

Permalink
chore: pdf ファイルの差分を表示するエンドポイントを作成しています
Browse files Browse the repository at this point in the history
  • Loading branch information
kei01234kei committed Jan 17, 2024
1 parent 4c22d92 commit 290f6ae
Show file tree
Hide file tree
Showing 20 changed files with 1,199 additions and 588 deletions.
1 change: 0 additions & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 42 additions & 24 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,33 @@

FROM golang:1.21

# Build diff-pdf
WORKDIR /
RUN git clone https://github.com/vslavik/diff-pdf.git
WORKDIR /diff-pdf
# 参考
# https://docs.docker.jp/engine/articles/dockerfile_best-practice.html
RUN apt-get update && \
apt-get -y install make automake g++ libglib2.0-dev libpoppler-glib-dev wx-common libwxgtk3.2-dev && \
apt-get clean
RUN ./bootstrap
RUN ./configure
RUN make
# diff-pdf にパスを通す
ENV PATH=$PATH:/diff-pdf

# Set destination for COPY
WORKDIR /app

# Download Go modules
COPY go.mod go.sum ./
RUN go mod download

# Copy the source code. Note the slash at the end, as explained in
# https://docs.docker.com/engine/reference/builder/#copy
COPY ./ ./

RUN go mod download

# Build
RUN CGO_ENABLED=0 GOOS=linux go build -o /backend

Expand Down
205 changes: 205 additions & 0 deletions api/gen/get_diffpdf.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 290f6ae

Please sign in to comment.