-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (26 loc) · 670 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM golang:1.17.2-bullseye as builder
WORKDIR /go/src/app
COPY ./builder/go.mod ./builder/go.sum ./
RUN go mod download
COPY ./builder .
RUN go get -d -v ./...
RUN go build .
FROM node:14-buster-slim as build
WORKDIR /app
RUN apt-get update && apt-get install -y \
poppler-utils \
tesseract-ocr-spa \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
ENV PATH /app/node_modules/.bin:$PATH
COPY web/package.json ./
COPY web/yarn.lock ./
COPY web/ts/package.json ./ts/
COPY web/ts/yarn.lock ./ts/
RUN yarn --frozen-lockfile
WORKDIR /app/ts
RUN yarn
WORKDIR /app
COPY web/ ./
COPY --from=builder /go/src/app/juscaba /app/builder
COPY run.sh /app/