Build docker image
This commit is contained in:
parent
f6eeef28c5
commit
f0a302d18e
|
@ -0,0 +1,4 @@
|
|||
node_modules/
|
||||
dist/
|
||||
tests/
|
||||
.vscode/
|
|
@ -0,0 +1,3 @@
|
|||
docker build \
|
||||
-f docker/Dockerfile \
|
||||
-t antiboredom/ffmpeg-explorer .
|
|
@ -0,0 +1,15 @@
|
|||
FROM node:18-alpine AS build
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json .
|
||||
COPY package-lock.json .
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:stable-alpine-slim
|
||||
|
||||
COPY ./docker/etc/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
services:
|
||||
ffmpeg-explorer:
|
||||
image: antiboredom/ffmpeg-explorer
|
||||
container_name: ffmpeg-explorer
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3000:80
|
|
@ -0,0 +1,19 @@
|
|||
events {
|
||||
multi_accept on;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
server_tokens off;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
charset utf-8;
|
||||
sendfile on;
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html = 404;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue