diff --git a/Dockerfile b/Dockerfile index b28444b..01f971a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,4 +12,7 @@ ENV PATH /app/node_modules/.bin:$PATH # install and cache app dependencies COPY package.json /app/package.json +# https://github.com/imagemin/optipng-bin/issues/97 +ENV CPPFLAGS="-DPNG_ARM_NEON_OPT=0" + ENTRYPOINT ["/app/docker-entry.sh"] diff --git a/README.md b/README.md index 8a9f0d5..6371192 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,13 @@ Fill out `.env.sample` and save it as `.env`. `npm start` to run the production server at port 3001 (or a specified PORT). +### Using Docker + +```bash +$ docker compose create +$ docker compose up +``` + ## Developer notes We use [Husky](https://github.com/typicode/husky) to manage Git hooks. diff --git a/docker-entry.sh b/docker-entry.sh old mode 100644 new mode 100755