-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`node:14.19.3-buster-slim` instead of `node:14.19.3-alpine`
- Loading branch information
Showing
6 changed files
with
105 additions
and
20 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 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,18 +1,43 @@ | ||
FROM node:14.19.3-alpine as builder | ||
FROM node:14.19.3-buster-slim as builder | ||
|
||
ARG BUNDLE=meteor-recorder.tar.gz | ||
COPY $BUNDLE meteor-bundle.tar.gz | ||
|
||
RUN apk add --no-cache --virtual .gyp python3 make g++ \ | ||
&& tar -xzvf meteor-bundle.tar.gz \ | ||
RUN tar -xzvf meteor-bundle.tar.gz \ | ||
&& apt-get update \ | ||
&& apt-get install -y python3 make g++ \ | ||
&& rm meteor-bundle.tar.gz \ | ||
&& (cd bundle/programs/server && npm install) | ||
|
||
FROM node:14.19.3-alpine | ||
FROM node:14.19.3-buster-slim | ||
|
||
ARG TITLE="meteor-recorder" | ||
ARG LICENSES="MIT" | ||
ARG SOURCE="https://github.com/boonya/meteor-recorder" | ||
ARG AUTHORS="Serhii [boonya] Buinytskyi <[email protected]>" | ||
ARG DESCRIPTION | ||
ARG VERSION | ||
ARG REVISION | ||
ARG CREATED | ||
|
||
LABEL org.opencontainers.image.base.name "node:14.19.3-buster-slim" | ||
LABEL org.opencontainers.image.title $TITLE | ||
LABEL org.opencontainers.image.licenses $LICENSES | ||
LABEL org.opencontainers.image.source $SOURCE | ||
LABEL org.opencontainers.image.authors $AUTHORS | ||
LABEL org.opencontainers.image.description $DESCRIPTION | ||
LABEL org.opencontainers.image.version $VERSION | ||
LABEL org.opencontainers.image.revision $REVISION | ||
LABEL org.opencontainers.image.created $CREATED | ||
|
||
ENV RECORDER_FOLDER="/mnt" \ | ||
ROOT_URL="http://localhost:3000" \ | ||
PORT=3000 | ||
|
||
WORKDIR /usr/src/app | ||
COPY --from=builder bundle . | ||
|
||
RUN apk add --no-cache ffmpeg | ||
VOLUME /mnt | ||
RUN apt-get update \ | ||
&& apt-get install -y ffmpeg | ||
|
||
CMD ["node", "main.js"] |
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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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