mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-05 19:51:57 +02:00
chore: add Dockerfile,and port flag
Signed-off-by: Hanif Dwy Putra S <hanifdwyputrasembiring@gmail.com>
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM node:current-alpine3.15
|
||||
|
||||
RUN apk update
|
||||
|
||||
# Prepare
|
||||
RUN mkdir -p /home/tiktok-dl
|
||||
COPY . /home/tiktok-dl
|
||||
WORKDIR /home/tiktok-dl
|
||||
|
||||
# Build
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["yarn", "start"]
|
||||
@@ -19,7 +19,7 @@
|
||||
"dev": "next dev",
|
||||
"lint": "next lint",
|
||||
"format": "prettier . --write",
|
||||
"start": "next start"
|
||||
"start": "next start --port ${PORT-3000}"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/eslint-plugin-next": "12.2.4",
|
||||
|
||||
Reference in New Issue
Block a user