Compare commits
2 Commits
2fb0947d8d
...
98222c5e2f
Author | SHA1 | Date |
---|---|---|
|
98222c5e2f | |
|
f72df1d340 |
|
@ -3,7 +3,7 @@ name: Build and push Nginx on almalinux based container images
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- almalinux
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -3,7 +3,7 @@ name: Build and push Nginx on alpine based container images
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- alpine
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# 1.26.2 Alpine 3.21
|
# 1.26.2 Alpine 3.21
|
||||||
ARG ALPINE_VERSION=3.21
|
ARG ALPINE_VERSION=3.21
|
||||||
|
|
||||||
FROM quay.io/aprimediet/alpine:${ALPINE_VERSION} AS builder
|
FROM quay.io/sindigilive/alpine:${ALPINE_VERSION} AS builder
|
||||||
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
|
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
@ -13,6 +13,7 @@ ENV NGINX_ROOT_DIR=/app
|
||||||
# Add nginx user and group and install nginx
|
# Add nginx user and group and install nginx
|
||||||
RUN /usr/sbin/addgroup -g 10001 nginx; \
|
RUN /usr/sbin/addgroup -g 10001 nginx; \
|
||||||
/usr/sbin/adduser -D -u 10001 -G nginx -s /sbin/nologin -h ${NGINX_ROOT_DIR}/htdocs nginx; \
|
/usr/sbin/adduser -D -u 10001 -G nginx -s /sbin/nologin -h ${NGINX_ROOT_DIR}/htdocs nginx; \
|
||||||
|
/usr/sbin/addgroup nginx tty; \
|
||||||
/sbin/apk --no-cache upgrade; \
|
/sbin/apk --no-cache upgrade; \
|
||||||
/sbin/apk --no-cache --update add \
|
/sbin/apk --no-cache --update add \
|
||||||
nginx;
|
nginx;
|
||||||
|
|
Loading…
Reference in New Issue