-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 770 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 770 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
29
30
#
# Dockerfile for openrefine
#
FROM mcr.microsoft.com/openjdk/jdk:21-ubuntu
MAINTAINER EasyPi Software Foundation
ARG OPENREFINE_VERSION
ARG OPENREFINE_FILE=openrefine-linux-${OPENREFINE_VERSION:?}.tar.gz
ARG OPENREFINE_URL=https://github.com/OpenRefine/OpenRefine/releases/download/${OPENREFINE_VERSION}/${OPENREFINE_FILE}
RUN set -xe \
&& apt update \
&& apt install -y curl procps \
&& mkdir -p /opt/openrefine \
&& cd /opt/openrefine \
&& curl -sSL ${OPENREFINE_URL} | tar xz --strip 1 \
&& rm -rf /var/lib/apt/lists/*
ENV REFINE_INTERFACE=0.0.0.0
ENV REFINE_PORT=3333
ENV REFINE_DATA_DIR=/data
ENV REFINE_MIN_MEMORY=256M
ENV REFINE_MEMORY=1024M
VOLUME $REFINE_DATA_DIR
WORKDIR $REFINE_DATA_DIR
EXPOSE $REFINE_PORT
ENTRYPOINT ["/opt/openrefine/refine"]