mirror of
https://github.com/Dannecron/parcel-example-neko.git
synced 2025-12-26 07:42:35 +03:00
Compare commits
1 Commits
feature_ve
...
feature-1
| Author | SHA1 | Date | |
|---|---|---|---|
| e121a6bfc7 |
@@ -9,9 +9,7 @@ RUN npm ci --omit=dev
|
||||
COPY src /opt/neko/src
|
||||
RUN npm run-script build
|
||||
|
||||
FROM nginx:1.23.2 as runtume
|
||||
|
||||
ENV APP_VERSION=latest
|
||||
FROM nginx:1.23.4 as runtume
|
||||
|
||||
COPY ./nginx/templates /etc/nginx/templates
|
||||
COPY --from=build /opt/neko/dist /opt/neko/dist
|
||||
|
||||
@@ -14,9 +14,4 @@ server {
|
||||
root /opt/neko/dist;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
location /version {
|
||||
default_type application/json;
|
||||
return 200 '{"version": "$APP_VERSION"}';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user