Adding the initial checkout for the repository
This commit is contained in:
1 parent
81bff68118
commit
079b7ec567
2 files changed
+113
No files matched your search
@@ -0,0 +1,62 @@
|
||||
# WARNING:
|
||||
#
|
||||
# For development and debugging only. Use Dockerfile.release for production.
|
||||
#
|
||||
# This image bundles rTorrent for easier debugging. It is not started by default.
|
||||
# Use --rtorrent argument if you wish to start the bundled rTorrent.
|
||||
# For production, use rtorrent-flood instead.
|
||||
#
|
||||
# This Dockerfile uses contents of current folder which might contain
|
||||
# secrets, uncommitted changes or other sensitive information. DO NOT
|
||||
# publish the result image unless it was composed in a clean environment.
|
||||
|
||||
ARG BUILDPLATFORM=amd64
|
||||
ARG NODE_IMAGE=docker.io/node:alpine
|
||||
|
||||
FROM --platform=$BUILDPLATFORM ${NODE_IMAGE} as nodebuild
|
||||
|
||||
RUN corepack enable && corepack install -g yarn
|
||||
|
||||
WORKDIR /usr/src/app/
|
||||
|
||||
# Copy project files
|
||||
COPY . ./
|
||||
|
||||
# Fetch dependencies from npm
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# Build assets
|
||||
RUN npm run build
|
||||
|
||||
# Now get the clean Node.js image
|
||||
FROM ${NODE_IMAGE} as flood
|
||||
|
||||
WORKDIR /usr/src/app/
|
||||
|
||||
# Copy sources
|
||||
COPY --from=nodebuild /usr/src/app ./
|
||||
|
||||
# Install runtime dependencies
|
||||
RUN apk --no-cache add \
|
||||
mediainfo
|
||||
|
||||
# Create "download" user
|
||||
# RUN adduser -h /home/download -s /sbin/nologin --disabled-password download
|
||||
|
||||
# Run as "download" user
|
||||
# USER download
|
||||
|
||||
# Expose port 3000 and 4200
|
||||
EXPOSE 3000
|
||||
EXPOSE 4200
|
||||
|
||||
# Creating mountpoint for config
|
||||
RUN mkdir -p /server/db/
|
||||
RUN apk update
|
||||
RUN apk add coreutils
|
||||
|
||||
# System local configuration
|
||||
VOLUME /server/db/
|
||||
|
||||
# Flood server in development mode
|
||||
ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start:development:server", "--", "--host=0.0.0.0", "--rundir=/server/"]
|
||||
Reference in new issue
Block a user