mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-09 14:00:15 -04:00
Merge pull request #37 from cssgunc/backend-dockerfile-update
Add node to dockerfile
This commit is contained in:
commit
38091128bf
|
@ -37,6 +37,19 @@ RUN add-apt-repository ppa:deadsnakes/ppa \
|
||||||
&& unlink /usr/bin/python3 \
|
&& unlink /usr/bin/python3 \
|
||||||
&& ln -s /usr/bin/python3.11 /usr/bin/python3
|
&& ln -s /usr/bin/python3.11 /usr/bin/python3
|
||||||
|
|
||||||
|
# Install Node.js 18 from https://github.com/nodesource
|
||||||
|
ENV NODE_MAJOR 18
|
||||||
|
RUN mkdir -p /etc/apt/keyrings \
|
||||||
|
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
|
||||||
|
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install nodejs -y \
|
||||||
|
&& npm install -g npm@latest \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install Angular CLI Globally
|
||||||
|
RUN npm install -g @angular/cli
|
||||||
|
|
||||||
# Use a non-root user per https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user
|
# Use a non-root user per https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user
|
||||||
ARG USERNAME=vscode
|
ARG USERNAME=vscode
|
||||||
ARG USER_UID=1000
|
ARG USER_UID=1000
|
||||||
|
|
Loading…
Reference in New Issue
Block a user