Skip to content

Commit

Permalink
Merge pull request #7 from thin-edge/image-change-base-image
Browse files Browse the repository at this point in the history
feat: use debian as base image to potentially support armv7 and armv6
  • Loading branch information
reubenmiller authored Feb 16, 2024
2 parents c86aac8 + 599654e commit 09facb7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
with:
context: containers/opcua-device-gateway
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
Expand Down
19 changes: 10 additions & 9 deletions containers/opcua-device-gateway/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18
FROM debian:11-slim

ARG BUILDTIME
ARG REVISION
Expand All @@ -15,14 +15,15 @@ LABEL org.opencontainers.image.vendor="thin-edge.io"
LABEL org.opencontainers.image.licenses="Apache 2.0"
LABEL org.opencontainers.image.url="https://thin-edge.io"
LABEL org.opencontainers.image.documentation="https://thin-edge.github.io/thin-edge.io/"
LABEL org.opencontainers.image.base.name="alpine:3.18"

RUN apk update \
&& apk upgrade \
&& apk add --no-cache bash \
&& apk add --no-cache --virtual=build-dependencies unzip \
&& apk add --no-cache curl \
&& apk add --no-cache openjdk11
LABEL org.opencontainers.image.base.name="debian:11-slim"

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
openjdk-11-jre \
wget \
bash \
unzip \
curl

# Only install thin-edge.io to read the tedge config properties (see the entrypoint.sh)
# TODO: In the future this coupling may be removed
Expand Down

0 comments on commit 09facb7

Please sign in to comment.