Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
updated build
Browse files Browse the repository at this point in the history
  • Loading branch information
bartr committed Jul 11, 2023
1 parent 2c3a626 commit 10147b4
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,13 @@ ARG USERNAME=vscode
RUN /bin/bash /scripts/kind-k3d-debian.sh

# change ownership of the home directory
RUN chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}

# customize first run message
RUN echo "👋 Welcome to the k3d Codespaces image\n" >> /usr/local/etc/vscode-dev-containers/first-run-notice.txt
RUN chown -R ${USERNAME}:${USERNAME} /home/${USERNAME} && \
echo "👋 Welcome to the k3d Codespaces image\n" >> /usr/local/etc/vscode-dev-containers/first-run-notice.txt

# update the container
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get autoremove -y && \
RUN apt-get update && \
apt-get upgrade -y && \
apt-get autoremove -y && \
apt-get clean -y

#######################
Expand Down Expand Up @@ -133,9 +131,9 @@ RUN set -eux; \
rm rustup-init; \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME;

RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get autoremove -y && \
RUN apt-get update && \
apt-get upgrade -y && \
apt-get autoremove -y && \
apt-get clean -y

# change ownership of the home directory
Expand Down Expand Up @@ -164,8 +162,8 @@ FROM k3d-rust as k3d-wasm

ARG USERNAME=vscode

RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get update && \
apt-get upgrade -y

# change ownership of the home directory
RUN chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}
Expand All @@ -174,8 +172,8 @@ WORKDIR /home/${USERNAME}
USER ${USERNAME}

# update rust
RUN rustup self update
RUN rustup update
RUN rustup self update && \
rustup update

# install WebAssembly target
RUN rustup target add wasm32-unknown-unknown
Expand All @@ -189,13 +187,11 @@ USER root
# install node
RUN /bin/bash /scripts/node-debian.sh /usr/local/share/nvm v18

RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get autoremove -y && \
RUN apt-get update && \
apt-get upgrade -y && \
apt-get autoremove -y && \
apt-get clean -y

# change ownership of the home directory
RUN chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}

# customize first run message
RUN echo "👋 Welcome to the k3d Rust WebAssembly Codespaces image\n" >> /usr/local/etc/vscode-dev-containers/first-run-notice.txt
RUN chown -R ${USERNAME}:${USERNAME} /home/${USERNAME} && \
echo "👋 Welcome to the k3d Rust WebAssembly Codespaces image\n" >> /usr/local/etc/vscode-dev-containers/first-run-notice.txt

0 comments on commit 10147b4

Please sign in to comment.