Skip to content

Commit

Permalink
chore: upgraded docker to use new node download instead of deprecated…
Browse files Browse the repository at this point in the history
… script
  • Loading branch information
Casper Bollen authored and Casper Bollen committed Nov 4, 2023
1 parent bfd127b commit f740dc8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 14 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 as build

# Install node
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash
RUN apt-get update && apt-get install -y nodejs
# RUN curl -sL https://deb.nodesource.com/setup_14.x | bash
# RUN apt-get update && apt-get install -y nodejs
RUN set -uex; \
apt-get update; \
apt-get install -y ca-certificates curl gnupg; \
mkdir -p /etc/apt/keyrings; \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
| gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
NODE_MAJOR=18; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" \
> /etc/apt/sources.list.d/nodesource.list; \
apt-get -qy update; \
apt-get -qy install nodejs;


WORKDIR /workspace
COPY .config .config
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "Generic Medication Order Entry",
"private": true,
"scripts": {
"postinstall": "dotnet tool restore && dotnet restore GenPres.sln",
"init-assets": "[ -d dist ] || mkdir dist && cp src/Client/public/*.* dist/.",
"watch-server": "dotnet watch --project src/Server/Server.fsproj",
"start": "npm run init-assets && dotnet fable watch src/Client -o dist -e .jsx --run vite",
Expand Down

0 comments on commit f740dc8

Please sign in to comment.