1 Commits

Author SHA1 Message Date
2e9525350a [feature] add version route 2023-04-03 10:33:07 +07:00
2 changed files with 8 additions and 1 deletions

View File

@@ -9,7 +9,9 @@ RUN npm ci --omit=dev
COPY src /opt/neko/src
RUN npm run-script build
FROM nginx:1.23.4 as runtume
FROM nginx:1.23.2 as runtume
ENV APP_VERSION=latest
COPY ./nginx/templates /etc/nginx/templates
COPY --from=build /opt/neko/dist /opt/neko/dist

View File

@@ -14,4 +14,9 @@ server {
root /opt/neko/dist;
index index.html;
}
location /version {
default_type application/json;
return 200 '{"version": "$APP_VERSION"}';
}
}