-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 842 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 842 Bytes
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
FROM golang:1.21-bookworm as backend
WORKDIR /go/src/github.com/moov-io/watchman
RUN apt-get update && apt-get upgrade -y && apt-get install make gcc g++
COPY . .
RUN go mod download
RUN make build-server
FROM node:21-bookworm as frontend
COPY webui/ /watchman/
WORKDIR /watchman/
RUN npm install --legacy-peer-deps
RUN npm run build
FROM debian:stable-slim
LABEL maintainer="Moov <oss@moov.io>"
RUN apt-get update && apt-get upgrade -y && apt-get install -y ca-certificates
COPY --from=backend /go/src/github.com/moov-io/watchman/bin/server /bin/server
COPY --from=frontend /watchman/build/ /watchman/
ENV WEB_ROOT=/watchman/
# Set OFAC_DOWNLOAD_TEMPLATE as ENV inside the image
ENV OFAC_DOWNLOAD_TEMPLATE=https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/%s
EXPOSE 8084
EXPOSE 9094
ENTRYPOINT ["/bin/server"]