Skip to content

Commit

Permalink
fix: dockerfile labels
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Nov 28, 2023
1 parent d4d20df commit 289057c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions packages/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM ghcr.io/alwatr/node:20.10.0 as builder

LABEL org.opencontainers.image.base.name="ghcr.io/alwatr/node:20.10.0"

RUN set -ex; corepack enable;

COPY . .
Expand All @@ -23,6 +25,3 @@ ENV PORT 80
EXPOSE 80

CMD ["node", "main.mjs"]

LABEL org.opencontainers.image.base.name="ghcr.io/alwatr/node:20.10.0" \
org.opencontainers.image.documentation="https://github.com/Alwatr/storage"
5 changes: 2 additions & 3 deletions packages/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM ghcr.io/alwatr/nginx-json:2.0.1

LABEL org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-json:2.0.1"

COPY etc/nginx/ /etc/nginx/
# COPY data/ .
RUN set -eux; ls -RlahF /etc/nginx /data
Expand All @@ -14,6 +16,3 @@ ENV NGINX_OPEN_FILE_CACHE="max=5000 inactive=1h" \
NGINX_LIMIT_REQ_RATE=400 \
NGINX_LIMIT_REQ_BURST=1000 \
NGINX_DISABLE_SYMLINKS=if_not_owner

LABEL org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-json:2.0.1" \
org.opencontainers.image.documentation="https://github.com/Alwatr/storage"

0 comments on commit 289057c

Please sign in to comment.