Skip to content

Commit

Permalink
Updates base image, node, npm, and npm packages
Browse files Browse the repository at this point in the history
Updates the base image, node version, npm version, and npm packages.

Spago has been pinned to a specific version instead of `next`.
  • Loading branch information
onslaughtq committed Sep 5, 2024
1 parent 8f14f71 commit 15466b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}}
- name: Build, tag, and push image to GCR
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:stable-20240423-slim
FROM debian:stable-20240904-slim

ENV LANG="C.UTF-8" LANGUAGE="C.UTF-8" LC_ALL="C.UTF-8"

Expand All @@ -11,13 +11,13 @@ RUN apt-get update && \
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

ARG NODE_MAJOR=20
ARG NODE_MAJOR=22
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-get update && \
apt-get install -qq -y --no-install-recommends nodejs && \
apt-get clean

RUN mkdir -p ~/.ssh/ && ssh-keyscan -t ed25519 github.com >> ~/.ssh/known_hosts

RUN npm install -g npm@10.5.2
RUN npm install -g spago@next [email protected] purescript-psa@0.8.2 grunt-cli@1.4.3 esbuild@0.20.2
RUN npm install -g npm@10.8.3
RUN npm install -g spago@0.93.39 [email protected] purescript-psa@0.9.0 grunt-cli@1.5.0 esbuild@0.23.1
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@ images to Github Container Registry.

# How to build and test locally

* Use `./build-image.sh build-local` on your machine to build a local image
for testing. As you make changes locally the images will be tagged with
`-uncommitted` on the end rather than the commit SHA.

* Update the base tag in `./build-image.sh` as necessary to reflect changes
in the base image or GHC version included in the image.
* Run `docker build -t purescript-tools:beta .` to create a local image with the tag of beta
* Use `'purescript-tools:beta` in an app that uses purescript-tools to try it out.

0 comments on commit 15466b3

Please sign in to comment.