fix: rebuild without cache and simplify Dockerfile
- Force no-cache build in docker-compose - Simplify Dockerfile to use Alpine package manager - Clean up configuration
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM registry:2
|
FROM registry:2
|
||||||
|
|
||||||
# The registry:2 image is based on Alpine, so we use apk
|
# Install apache2-utils using Alpine package manager
|
||||||
RUN apk add --no-cache apache2-utils
|
RUN apk --no-cache add apache2-utils
|
||||||
@@ -2,7 +2,10 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
registry:
|
registry:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
no-cache: true
|
||||||
container_name: registry
|
container_name: registry
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
expose:
|
expose:
|
||||||
|
|||||||
Reference in New Issue
Block a user