Update release dockerfile to use a symlink

This commit is contained in:
Asher 2020-03-04 16:02:25 -06:00
parent a442d3e3f9
commit 744327ffd4
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -26,11 +26,10 @@ RUN curl -SsL https://github.com/boxboat/fixuid/releases/download/v0.4/fixuid-0.
RUN rm -rf /var/lib/apt/lists/*
COPY release/code-server*.tar.gz /tmp
COPY release/code-server*.tar.gz /tmp/
RUN cd /tmp && tar -xzf code-server*.tar.gz && rm code-server*.tar.gz && \
mv code-server* /usr/local/lib/code-server && \
sed 's/\$0/\/usr\/local\/lib\/code-server\/code-server/g' /usr/local/lib/code-server/code-server > /usr/local/bin/code-server && \
chmod +x /usr/local/bin/code-server
ln -s /usr/local/lib/code-server/code-server /usr/local/bin/code-server
EXPOSE 8080
USER coder