Skip to content

Commit 91f708a

Browse files
committed
add TMC to postBuild
1 parent 1f58ab5 commit 91f708a

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

postBuild

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,10 @@ USER $NB_USER
1212
# Set environments for TMC
1313
ENV TMC_DIR=/opt/tmc/
1414
ENV TMC_CONFIG_DIR="${HOME}/tmc-config/tmc-tmc_cli_rust"
15-
ENV WORK_DIR=/home/$NB_USER/work/
16-
17-
# Set working directory to /opt/app
18-
WORKDIR /opt/app
19-
20-
# Set working directory to /opt/tmc
21-
WORKDIR /opt/tmc
15+
ENV WORK_DIR=/home/$NB_USER
2216

2317
# Install TMC
24-
RUN apt-get install -y --no-install-recommends curl \
18+
apt-get install -y --no-install-recommends curl \
2519
&& curl -0 https://raw.githubusercontent.com/rage/tmc-cli-rust/main/scripts/install.sh | bash -s x86_64 linux \
2620
# Set download location for exercises
2721
&& mkdir -p "${TMC_DIR}" \
@@ -31,3 +25,4 @@ RUN apt-get install -y --no-install-recommends curl \
3125
&& fix-permissions "${TMC_DIR}" \
3226
&& apt-get purge -y --auto-remove curl \
3327
&& apt-get clean
28+

0 commit comments

Comments
 (0)