Skip to content

Commit

Permalink
Update image in README and rearrange Dockerfile
Browse files Browse the repository at this point in the history
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
akama-aka committed Apr 28, 2024
1 parent 56f10ea commit 24871d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
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"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Below is a sample docker-compose.yml that gives an example of how Docker Compose
version: "3.8"
services:
cdn-cgi-server:
image: akami-cdn-cgi-server:1.0.0.2
image: ghcr.io/akama-aka/akami-statuspage:development
environment:
- VERSION=1.0.0.2
- SERVER_PORT=8080
Expand Down

0 comments on commit 24871d0

Please sign in to comment.