-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (23 loc) · 905 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
FROM ubuntu:focal AS gitserver
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && \
apt-get install --no-install-recommends -y \
ca-certificates \
curl \
openjdk-16-jre-headless \
wait-for-it \
xz-utils && \
/usr/sbin/update-ca-certificates && \
apt-get autoremove -y && \
apt-get clean
RUN curl -sL https://github.com/omegaup/libinteractive/releases/download/v2.0.27/libinteractive.jar \
-o /usr/share/java/libinteractive.jar && \
useradd --create-home --shell=/bin/bash ubuntu && \
mkdir -p /etc/omegaup/gitserver /var/log/omegaup /var/lib/omegaup/problems.git && \
chown -R ubuntu /var/log/omegaup /var/lib/omegaup
ARG RELEASE
ENV RELEASE=$RELEASE
RUN curl -sL https://github.com/omegaup/gitserver/releases/download/${RELEASE}/omegaup-gitserver.tar.xz | \
tar xJ -C /
USER ubuntu
WORKDIR /var/lib/omegaup