mealie/frontend/frontend.Dockerfile
wengtad 999d0d4322
Optimize Docker (#575)
* reduce docker dev size

* reduce docker prod size

* fix lint

* add gunicorn

* fix bandit reported issues

* add docs external link icon

* add env vars to docs

* add permission to docker

* merge to one backend Dockerfile

* fix codefactor issues

* add docs for puid/pgid

* add docker healthcheck
2021-06-22 10:22:31 -08:00

22 lines
No EOL
524 B
Docker

FROM node:lts-alpine
# # install simple http server for serving static content
# RUN npm install -g http-server
# make the 'app' folder the current working directory
WORKDIR /app
# copy both 'package.json' and 'package-lock.json' (if available)
COPY package*.json ./
# install project dependencies
RUN npm install
# copy project files and folders to the current working directory (i.e. 'app' folder)
# COPY . .
# build app for production with minification
# RUN npm run build
EXPOSE 8080
CMD [ "npm", "run", "serve" ]