Skip to content

Commit

Permalink
feat: Remove isolate in docker/Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
minhnhatnoe committed Apr 28, 2024
1 parent 215f4e2 commit b1d9eab
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Stage -1: Update apt-get
# Stage 0: Update apt-get
FROM ubuntu:jammy AS base-ubuntu

# Mount apt's cache folders to cache install but maintain
Expand All @@ -10,19 +10,6 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && apt-get upgrade -y

# # Stage 0: Compile isolate
# FROM base-ubuntu AS isolate

# RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
# --mount=type=cache,target=/var/lib/apt,sharing=locked \
# apt-get update && apt-get install -y libcap-dev gcc git make

# WORKDIR /isolate

# RUN git clone --branch v1.10.1 --single-branch https://github.com/ioi/isolate.git .

# RUN make isolate

# Stage 1: Generate front-end
FROM node:18-alpine AS frontend

Expand Down Expand Up @@ -60,11 +47,6 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
python3.10 python2.7 rustc golang libcap-dev \
openssl

# COPY --from=isolate /isolate/ /isolate

# WORKDIR /isolate
# RUN make install

COPY --from=backend /kjudge/kjudge /usr/local/bin
COPY --from=backend /kjudge/scripts /scripts

Expand Down

0 comments on commit b1d9eab

Please sign in to comment.