Skip to content

Commit

Permalink
Update dpeendencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dev committed Nov 29, 2023
1 parent 83dfc66 commit b593d53
Show file tree
Hide file tree
Showing 7 changed files with 965 additions and 757 deletions.
52 changes: 0 additions & 52 deletions .devcontainer/Dockerfile.alpine

This file was deleted.

42 changes: 42 additions & 0 deletions .devcontainer/Dockerfile.node
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM debian:bookworm

ENV TZ="Europe/London"
ENV LANG="en_US.UTF-8"
ENV LANGUAGE="en_US:en"

ENV DEBIAN_FRONTEND=noninteractive

RUN apt update && apt upgrade -y
RUN apt install -y git ca-certificates make vim postgresql-client \
bash gcc g++ curl wget zip coreutils locales mailcap pkg-config openssl gnupg libssl-dev procps

# Set the locale
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
ENV LC_ALL="en_US.UTF-8"

RUN update-ca-certificates

# setup node
# https://github.com/nodesource/distributions
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
env NODE_MAJOR=20
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt update && apt install -y nodejs
RUN npm install -g npm@latest

# Setup dev user
ARG USERNAME=dev
ARG USER_UID=10001
ARG USER_GID=$USER_UID

RUN addgroup --gid $USER_GID $USERNAME \
&& adduser --uid $USER_UID --ingroup $USERNAME --disabled-password --shell /bin/bash --gecos "" $USERNAME

USER $USERNAME

COPY --chown=$USERNAME bashrc /home/$USERNAME/.bashrc
COPY --chown=$USERNAME vimrc /home/$USERNAME/.vimrc

WORKDIR /
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"dockerFile": "Dockerfile",
"dockerFile": "Dockerfile.node",
"extensions": [
// "golang.Go",
"rust-lang.rust-analyzer"
// "rust-lang.rust-analyzer"
"Vue.volar"
],
"forwardPorts": [
]
Expand Down
Loading

0 comments on commit b593d53

Please sign in to comment.