mirror of
https://github.com/edu4rdshl/rust-postgres-devcontainer.git
synced 2026-07-17 23:24:56 +00:00
Fix typo and delete cargo cache by default.
This commit is contained in:
parent
016dfa9787
commit
3fd4ac0ca5
1 changed files with 3 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ RUN useradd -m $USER_NAME -s /bin/bash
|
||||||
USER $USER_NAME
|
USER $USER_NAME
|
||||||
# Install nightly toolchain and rustfmt for it and the stable version
|
# Install nightly toolchain and rustfmt for it and the stable version
|
||||||
RUN rustup toolchain install nightly --component rustfmt clippy && rustup component add rustfmt clippy \
|
RUN rustup toolchain install nightly --component rustfmt clippy && rustup component add rustfmt clippy \
|
||||||
&& cargo install diesel_cli dcargo-edit cargo-update cargo-audit cargo-udeps && mkdir -p /home/$USER_NAME/workspace
|
&& cargo install diesel_cli cargo-edit cargo-update cargo-audit cargo-udeps && mkdir -p /home/$USER_NAME/workspace
|
||||||
# Copy .bash_aliases, it contains several useful aliases for cargo
|
# Copy .bash_aliases, it contains several useful aliases for cargo
|
||||||
COPY configs/.bash_aliases /home/$USER_NAME/.bash_aliases
|
COPY configs/.bash_aliases /home/$USER_NAME/.bash_aliases
|
||||||
# Detect the postgres version and set the volume
|
# Detect the postgres version and set the volume
|
||||||
|
|
@ -20,3 +20,5 @@ COPY configs/pg_hba.conf /etc/postgresql/$POSTGRES_VERSION/main/pg_hba.conf
|
||||||
USER root
|
USER root
|
||||||
RUN echo "$USER_NAME ALL=(ALL:ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/$USER_NAME && \
|
RUN echo "$USER_NAME ALL=(ALL:ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/$USER_NAME && \
|
||||||
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen && update-locale
|
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen && update-locale
|
||||||
|
# Delete all the cargo cache and the apt cache
|
||||||
|
RUN rm -rf /usr/local/cargo/registry && apt-get clean
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue