Skip to content

Commit

Permalink
chore: update Vendure package versions and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dlhck committed Oct 4, 2024
1 parent 49e0620 commit 1b11455
Show file tree
Hide file tree
Showing 7 changed files with 1,618 additions and 970 deletions.
25 changes: 20 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
FROM node:20.12
FROM node:20-alpine

RUN apk add --no-cache libc6-compat python3 make g++

RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app

WORKDIR /home/node/app
RUN npm install pm2 -g --unsafe-perm

COPY package.json ./

COPY --chown=node:node package-lock.json ./

USER node

RUN npm i

COPY --chown=node:node . .
RUN ["chmod", "+x", "install-storefront.sh"]
RUN ["./install-storefront.sh", "v0.1.27"]

RUN ["npm", "run", "compile"]

ENV VIPS_CONCURRENCY=$(nproc)


EXPOSE 3000
CMD [ "pm2-runtime", "process.json" ]
ENV PORT=3000

HEALTHCHECK --interval=12s --timeout=12s --start-period=5s CMD wget --no-verbose --tries=1 --spider http://localhost:$PORT/health || exit 1

CMD ["node", "build/index.js"]
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
# Vendure Demo
<p align="center">
<a href="https://vendure.io">
<img alt="Vendure logo" height="60" width="auto" src="https://a.storyblok.com/f/192301/252x200/c6608214a9/brand-icon-primary.svg">
</a>
</p>

<h1 align="center">
Vendure Public Demo
</h1>
<p align="center">
This is a demo project used as the basis for the public shared Vendure demo.
</p>

<p align="center">
<a href="https://vendure.io/community">
<img src="https://img.shields.io/badge/join-our%20discord-7289DA.svg" alt="Join our Discord" />
</a>
<a href="https://twitter.com/intent/follow?screen_name=vendure_io">
<img src="https://img.shields.io/twitter/follow/vendure_io" alt="Follow @vendure_io" />
</a>
</p>


This is a demo project used as the basis for the online Vendure demo. The src/index.ts script populates the server using the Vendure CLI `populate` command, and then caches the generated pristine data. Every day, this cached data is restored to reset any changes which have been made to the server instance in that time.

Expand Down
5 changes: 0 additions & 5 deletions install-storefront.sh

This file was deleted.

Loading

0 comments on commit 1b11455

Please sign in to comment.