Commit 796507fd authored by Lukáš Lalinský's avatar Lukáš Lalinský

Add docker image with static files

parent d5072910
Pipeline #20554 failed with stages
in 2 minutes and 38 seconds
FROM nginx:alpine
RUN apk --no-cache add curl
COPY admin/nginx-static.conf /etc/nginx/conf.d/default.conf
COPY acoustid/web/static/ /opt/acoustid/server/acoustid/web/static/
HEALTHCHECK --start-period=1s \
CMD curl -qf http://localhost/_health/ready || exit 1
......@@ -21,7 +21,7 @@ docker pull $IMAGE:$PREV_VERSION || true
docker build --cache-from=$IMAGE:$PREV_VERSION -t $IMAGE:$VERSION .
docker push $IMAGE:$VERSION
for name in api web import cron
for name in api web static import cron
do
docker build -t $IMAGE:$VERSION-$name -f Dockerfile.$name --build-arg IMAGE=$IMAGE --build-arg VERSION=$VERSION .
docker push $IMAGE:$VERSION-$name
......
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
location /_health {
add_header Content-Type text/plain;
return 200 'ok';
}
location /static {
alias /opt/acoustid/server/acoustid/web/static/;
}
location / {
return 404;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment