-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update image in README and rearrange Dockerfile
Updated the image tag in the README file to use the development version from the ghcr.io repository. Also, rearranged Dockerfile by moving the environment variable declarations and adding new labels. The changes aim to enhance readability and maintainability of the Dockerfile.
- Loading branch information
Showing
2 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
FROM node:21-alpine | ||
LABEL authors="Akama Aka" | ||
LABEL org.opencontainers.image.license="CC-BY-NC-ND 4.0" | ||
ENV VERSION=1.0.0.2 \ | ||
SERVER_PORT=8080 \ | ||
SERVER_HOSTNAME=127.0.0.1 \ | ||
SERVER_LOG_LEVEL=info \ | ||
PATH_IDENTIFIER=akami-cgi | ||
LABEL org.opencontainers.image.version=$VERSION | ||
LABEL org.opencontainers.image.description="An custom CDN-CGI Server for 4xx,5xx Status Response Sites." | ||
RUN npm i -g fastify-cli | ||
RUN mkdir /opt/server | ||
RUN chown node:node /opt/server | ||
USER node | ||
WORKDIR /opt/server | ||
COPY --chown=node:node ./ /opt/server | ||
ENV VERSION=1.0.0.2 \ | ||
SERVER_PORT=8080 \ | ||
SERVER_HOSTNAME=127.0.0.1 \ | ||
SERVER_LOG_LEVEL=info \ | ||
PATH_IDENTIFIER=akami-cgi | ||
|
||
RUN npm i | ||
EXPOSE $SERVER_PORT | ||
CMD [ "npm", "run"] | ||
CMD [ "npm", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters