forked from jesec/flood
-
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.
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Use node alpine docker image | ||
FROM docker.io/node:lts-alpine | ||
|
||
# Install runtime dependencies | ||
RUN apk --no-cache add \ | ||
mediainfo \ | ||
tini \ | ||
coreutils | ||
|
||
COPY package.json package-lock.json build /app/ | ||
|
||
WORKDIR /app/ | ||
|
||
RUN mv build dist &&\ | ||
npm install --ignore-scripts --omit=dev &&\ | ||
npm cache clean --force | ||
|
||
|
||
# Expose port 3000 | ||
EXPOSE 3000 | ||
|
||
# Flood | ||
ENV FLOOD_OPTION_HOST="0.0.0.0" | ||
ENTRYPOINT ["/sbin/tini", "--", "node", "--enable-source-maps", "--use_strict", "dist/index.js"] |