Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ dev.dockerfile
.ebextensions
nbproject
public
package-lock.json
input

node-ffmpeg.zip

/node_modules
/src/node_modules
# Elastic Beanstalk Files
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml
Expand Down
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,26 @@
#
#####################################################################

FROM node:18.19.0-alpine3.19 as build
FROM node:lts-alpine@sha256:06d7adf3e0ef61a13f1d28682726366f97a15aa1888c934d3ecec86c33918b53 as build

RUN apk add --no-cache git

# install pkg
RUN npm install -g pkg
RUN npm install -g @yao-pkg/pkg

ENV PKG_CACHE_PATH /usr/cache

WORKDIR /usr/src/app

# Bundle app source
COPY ./src .
RUN npm install
RUN npm ci --omit=dev

# Create single binary file
RUN pkg --targets node12-alpine-x64 /usr/src/app/package.json
RUN pkg --targets node24-alpine-arm64 /usr/src/app/package.json


FROM jrottenberg/ffmpeg:4.4.1-alpine313

FROM jrottenberg/ffmpeg:8-alpine@sha256:3ab1c371ad3e734e7a31a3219e6a75120f1106c776b291db1bfc2d20158cd73e
# Create user and change workdir
RUN adduser --disabled-password --home /home/ffmpgapi ffmpgapi
WORKDIR /home/ffmpgapi
Expand Down
Loading