forked from sematext/sematext-agent-docker
-
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.
move back to alpine linux as default base image
- Loading branch information
Showing
3 changed files
with
49 additions
and
49 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM node:4.3.0-slim | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
# Remove obsolete files: | ||
&& apt-get clean \ | ||
&& rm -rf \ | ||
/tmp/* \ | ||
/usr/share/doc/* \ | ||
/var/cache/* \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* | ||
|
||
RUN curl -L \ | ||
https://github.com/krallin/tini/releases/download/v0.9.0/tini \ | ||
> /usr/local/bin/tini && chmod 755 /usr/local/bin/tini | ||
|
||
COPY . /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
RUN apt-get update && apt-get install -y git \ | ||
&& npm install -g \ | ||
&& apt-get remove --auto-remove -y git \ | ||
# Remove obsolete files: | ||
&& apt-get clean \ | ||
&& rm -rf \ | ||
/tmp/* \ | ||
/usr/share/doc/* \ | ||
/var/cache/* \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* | ||
|
||
RUN ln -s /usr/src/app/run.sh /usr/local/bin/run-sematext-agent | ||
|
||
EXPOSE 9000 | ||
|
||
ENTRYPOINT ["tini", "--"] | ||
CMD ["run-sematext-agent"] |