Skip to content

Commit

Permalink
Merge pull request #804 from shlinkio/dependabot/npm_and_yarn/purgecs…
Browse files Browse the repository at this point in the history
…s-7.0.2

Bump purgecss from 6.0.0 to 7.0.2
  • Loading branch information
acelaya authored Nov 23, 2024
2 parents 2db1226 + ab01e13 commit f36f9a3
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 204 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:23.3-alpine as node
FROM node:23.3-alpine AS node
USER root
COPY . /shlink-website
RUN cd /shlink-website && \
npm ci && \
npm run build:prod
node --run build:prod

FROM nginx:1.27.2-alpine
LABEL maintainer="Alejandro Celaya <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ In order to run this project locally, follow these steps:
* Run project: `docker compose up`.
* Without `docker compose`:
* Install dependencies: `npm install`.
* Run project: `npm run dev`.
* Run project: `node --run dev`.
* Open app [localhost:3000](http://localhost:3000).

Now you can work locally on any change in case you want to provide some improvement.
Expand All @@ -26,7 +26,7 @@ Now you can work locally on any change in case you want to provide some improvem

The project can be exported to a static site fully optimized for production.

Run `npm run export` and you will get an `out` directory with the static files.
Run `node --run build:prod` and you will get a `build` directory with the static files.

Now you can serve it with the web server of your choice.

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
container_name: shlink_webstie_node
user: 1000:1000
image: node:22.10-alpine
command: /bin/sh -c "cd /shlink-website && npm install && npm run dev"
command: /bin/sh -c "cd /shlink-website && npm install && node --run dev"
volumes:
- ./:/shlink-website
ports:
Expand Down
Loading

0 comments on commit f36f9a3

Please sign in to comment.