Skip to content

Instantly share code, notes, and snippets.

@Max-AR
Created October 24, 2020 01:28
Show Gist options
  • Save Max-AR/659d721810196b8c0841159b8befd5f5 to your computer and use it in GitHub Desktop.
Save Max-AR/659d721810196b8c0841159b8befd5f5 to your computer and use it in GitHub Desktop.
FROM node:14
# Dependencies for chrome.
RUN apt-get -qq update -y \
&& apt-get -qq install -y \
gconf-service \
libasound2 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgcc1 \
libgconf-2-4 \
libgdk-pixbuf2.0-0 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxtst6 \
ca-certificates \
fonts-liberation \
libappindicator1 \
libnss3 \
lsb-release \
xdg-utils \
wget
RUN mkdir -p /app \
&& mkdir -p /build \
&& cd /build \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip -q awscliv2.zip \
&& ./aws/install
COPY upload.sh /usr/local/bin/
RUN chmod 755 /usr/local/bin/upload.sh
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/upload.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment