Skip to content

Commit

Permalink
Fix Dockerfile multi-stage builds, closes #1597.
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist committed Dec 30, 2022
1 parent ed1150a commit 00e1586
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
FROM ubuntu:22.04 as base-environment
FROM ubuntu:22.04 as oscal-os-dependencies

ENV TZ=US/Eastern
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update && apt-get dist-upgrade -y

FROM base-environment as oscal-os-dependencies

RUN apt-get install -y \
apt-utils build-essential git jq libxml2-utils maven nodejs npm python3-pip unzip wget && \
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get update && \
apt-get dist-upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
apt-utils build-essential git jq libxml2-utils maven nodejs npm python3-pip unzip wget && \
apt-get clean

FROM golang:1.19.4-bullseye as oscal-hugo-build
Expand Down

0 comments on commit 00e1586

Please sign in to comment.