Skip to content

Commit

Permalink
feat(node): rename yarn to nodejs image and add npm support
Browse files Browse the repository at this point in the history
  • Loading branch information
xarem committed Nov 28, 2023
1 parent a789e63 commit 1e7027a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ See README: https://github.com/whatwedo/docker-base-images/
| `whatwedo/nginx-php` | nginx web server and PHP-FPM |
| `whatwedo/php` | PHP interpreter |
| `whatwedo/symfony` | Symfony image based on nginx and PHP-FPM |
| `whatwedo/yarn` | yarn package manager |
| `whatwedo/nodejs` | NodeJS, npm and yarn v1 |


## Usage
Expand Down Expand Up @@ -119,13 +119,6 @@ The following custom setting were made
[nginx](https://www.nginx.com/) is configured to use it with PHP sites using PHP-FPM. Place your site in `/var/www` to serve it.


### yarn

(only installed if you are using `whatwedo/yarn`)

[yarn](https://yarnpkg.com) is a fast and reliable JavaScript package manager.


## Upstart

The default command (`CMD`) of this image is set to `/sbin/upstart`. `/sbin/upstart` provides a simple init logic. You are able to place one or multiple scripts in the `/etc/upstart` directory. These scripts are going to be automatically executed in alphabetical order at the container startup. After running all scripts, `/sbin/upstart` will trigger the runit execution.
Expand Down
2 changes: 1 addition & 1 deletion build_order
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
base
php
yarn
nodejs
nginx
nginx-php
symfony
9 changes: 9 additions & 0 deletions images/nodejs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ARG VERSION
FROM whatwedo/base:$VERSION

# Add rootfs files
COPY ./rootfs /

# note: git and openssh-client is needed to
# install packages directly from a repository
RUN apk add --no-cache nodejs npm yarn git openssh-client
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ command:
exit-status: 0
yarn -v:
exit-status: 0
npm -v:
exit-status: 0
8 changes: 0 additions & 8 deletions images/yarn/Dockerfile

This file was deleted.

0 comments on commit 1e7027a

Please sign in to comment.