Created
October 8, 2022 01:19
-
-
Save wryfi/6f485f8b11626f16589523285fd9b153 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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