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
|
||||
|
||||
# The registry:2 image is based on Alpine, so we use apk
|
||||
RUN apk add --no-cache apache2-utils
|
||||
# Install apache2-utils using Alpine package manager
|
||||
RUN apk --no-cache add apache2-utils
|
||||
@@ -2,7 +2,10 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
registry:
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
no-cache: true
|
||||
container_name: registry
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
|
||||
Reference in New Issue
Block a user