Skip to content

Commit

Permalink
Change images to alpine where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Derschatta committed Sep 5, 2023
1 parent 61cd0a0 commit 22ad969
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM httpd:2.4
FROM httpd:2.4-alpine

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
RUN apk add --no-cache --update \
nano \
openssl \
gettext
Expand Down
2 changes: 1 addition & 1 deletion apache/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

# if there's no ssl certificate yet create it
if [ ! -f "/usr/local/apache2/conf/server.crt" ]; then
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
# docker-compose -f docker-compose.yml -f compose/nginx.yml -f compose/pgsql.yml -f compose/php.yml up -d pgsql php-7.3

nodejs:
image: node:16
image: node:16-alpine
container_name: totara_nodejs
environment:
TZ: ${TIME_ZONE}
Expand All @@ -28,7 +28,7 @@ services:
- totara

redis:
image: redis
image: redis:alpine
# activate persistency
command: "redis-server --appendonly yes"
environment:
Expand All @@ -39,7 +39,7 @@ services:
- totara

memcached:
image: memcached
image: memcached:alpine
environment:
TZ: ${TIME_ZONE}
networks:
Expand Down
4 changes: 2 additions & 2 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM nginx:1.20
FROM nginx:1.20-alpine

ENV REMOTE_DATA=${REMOTE_DATA}

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
RUN apk add --no-cache --update \
nano \
openssl \
gettext
Expand Down
2 changes: 1 addition & 1 deletion nginx/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

# if there's no ssl certificate yet create it
if [ ! -f "/etc/nginx/ssl/domain.crt" ]
Expand Down

0 comments on commit 22ad969

Please sign in to comment.