-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (16 loc) · 821 Bytes
/
Dockerfile
File metadata and controls
17 lines (16 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM ubuntu:bionic
WORKDIR /usr/src/compressor
COPY package.json .
RUN apt-get update && apt-get -y install curl dirmngr apt-transport-https lsb-release ca-certificates
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:stebbins/handbrake-git-snapshots && apt-get update -qq && apt-get install -qq handbrake-cli
COPY . .
RUN npm install --only=prod && npm run build
EXPOSE 3001
RUN mkdir /usr/src/compressor/dist/output
RUN mkdir /usr/src/compressor/dist/output/raw
RUN mkdir /usr/src/compressor/dist/output/compressed
ENV COMPRESSOR_DOWNLOAD_DIR=/usr/src/compressor/dist/output/raw
ENV COMPRESSOR_COMPRESSED_DIR=/usr/src/compressor/dist/output/compressed
CMD ["node", "./dist/index.js"]