Skip to content

Commit

Permalink
Merge pull request #6 from DNXLabs/dnx_install_aws-cli
Browse files Browse the repository at this point in the history
Updating libs and install aws-cli on image
  • Loading branch information
soareseds authored Jul 21, 2022
2 parents 171dcdc + 819899c commit 4fe5653
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
FROM node:16-alpine

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser

WORKDIR /work

RUN apk add --no-cache \
COPY src/config.tpl config.tpl
COPY src/docker-entrypoint.sh /bin/docker-entrypoint.sh

RUN apk --no-cache update && \
apk --no-cache add \
python3 \
python3-dev \
py-pip \
ca-certificates \
chromium \
nss \
freetype \
Expand All @@ -12,18 +23,12 @@ RUN apk add --no-cache \
nodejs \
yarn \
gettext \
bash

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser

RUN npm install -g [email protected]

RUN mkdir /root/.aws

COPY src/config.tpl config.tpl

COPY src/docker-entrypoint.sh /bin/docker-entrypoint.sh
RUN chmod +x /bin/docker-entrypoint.sh
bash && \
pip3 --no-cache-dir install 'awscli<2.7.17' --upgrade && \
update-ca-certificates && \
rm -rf /var/cache/apk/* && \
npm install -g [email protected] && \
mkdir /root/.aws && \
chmod +x /bin/docker-entrypoint.sh

ENTRYPOINT ["/bin/docker-entrypoint.sh"]

0 comments on commit 4fe5653

Please sign in to comment.