Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: 15012002/rust-node:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/rust-node:latest
${{ secrets.DOCKERHUB_USERNAME }}/rust-node:${{ github.head_ref || github.ref_name }}
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM rust:1.76.0
FROM rust:1.83.0
LABEL maintainer="Matanel Gordon"
RUN apt update -y
# install nodejs
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | sh && apt install nodejs -y
# make "CLI" button to work with bash
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | sh && apt install nodejs -y
# make "CLI" button to work with bash - easier for debugging
RUN ln -sf /bin/bash /bin/sh
# Install common package managers
RUN npm i -g yarn pnpm
RUN npm i -g yarn pnpm
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ A rust image with built-in nodejs for various purposes.
- To build a rust projects involved with node momorepos
- To build web-assembly projects

> NOTE: This image is only for building stage, Do not use this as final image in dockerfiles.

## Usage

To diploy a node site based on rust packages
Expand All @@ -33,7 +35,7 @@ FROM nginx:latest
COPY --from=builder /usr/app/dist /usr/share/nginx/html
```

> NOTE: The Dockerfile above wont work yet it is a fair demonstration of how it should be used.
> NOTE: The Dockerfile above wont work yet it sets a fair demonstration of how it should be used.

### handling CLI

Expand Down
Loading