Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Minimize to alpine base image (attempt at self-contained builds)

Signed-off-by: Nikita Petko <petko@vmminfra.net>
  • Loading branch information
jf-06 authored Mar 20, 2024
1 parent 71a32f1 commit 978d326
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Base Image: net8.0
FROM mcr.microsoft.com/dotnet/aspnet:8.0.1-jammy
FROM alpine:latest

ARG IMAGE_TAG=

WORKDIR /opt/grid
COPY ./deploy/${IMAGE_TAG}/ /opt/grid/

COPY ./ssl/global-root-ca.crt /usr/local/share/ca-certificates/global-root-ca.crt
RUN chmod 644 /usr/local/share/ca-certificates/global-root-ca.crt && update-ca-certificates
RUN cat /usr/local/share/ca-certificates/global-root-ca.crt >> /etc/ssl/certs/ca-certificates.crt

RUN mkdir /opt/grid/logs
RUN mkdir /opt/grid/scripts
Expand Down

0 comments on commit 978d326

Please sign in to comment.