Skip to content

Instantly share code, notes, and snippets.

@wryfi
Created October 8, 2022 01:19
Show Gist options
  • Save wryfi/6f485f8b11626f16589523285fd9b153 to your computer and use it in GitHub Desktop.
Save wryfi/6f485f8b11626f16589523285fd9b153 to your computer and use it in GitHub Desktop.
FROM node:18-bullseye AS build
RUN apt-get update && apt-get install -y --no-install-recommends \
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 \
libxss1 libasound2 libxtst6 xauth xvfb g++ make \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb
COPY . /src/
WORKDIR /src
RUN npm install && npm run build:prod
FROM nginx:latest
COPY --from=build /src/dist /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment