-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from DNXLabs/dnx_install_aws-cli
Updating libs and install aws-cli on image
- Loading branch information
Showing
1 changed file
with
19 additions
and
14 deletions.
There are no files selected for viewing
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
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 \ | ||
|
@@ -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"] |