Skip to content
Snippets Groups Projects
Commit a44b11a3 authored by Kay Effenberger's avatar Kay Effenberger
Browse files

ADD: nginx Dockerfile

Add nginx Dcokerfile and build it via gitlab-ci
parent 0d8eb3cc
No related branches found
No related tags found
1 merge request!14ADD: nginx Dockerfile
Pipeline #5267 failed
......@@ -161,9 +161,24 @@ variables:
/usr/local/bin/tank --config /tmp/tank.yaml run --listen ":$TANK_PORT"
stages:
- nginx
- test
- release
build-nginx:
image: docker:latest
stage: nginx
variables:
NGINX_IMAGE_NAME: 'autoradio/nginx-unprivileged-certbot'
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
- docker build -t $AURA_IMAGE_NAME -t $CI_REGISTRY_IMAGE:main ./nginx
lint:
image: node:lts-alpine
stage: test
......
FROM nginxinc/nginx-unprivileged:1.25
USER root
RUN set -e \
&& apt-get update -q \
&& apt-get install -y -q --no-install-recommends python3-certbot-nginx
USER nginx
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment