---
# System prepended metadata

title: Untitled

---

```
FROM 737819302384.dkr.ecr.us-west-2.amazonaws.com/cp-base-ubuntu-1804:20220903-718 as base

#ARG PCN_BIN
#ARG FILES_DIR

ARG PCN_BIN
ARG FILES_DIR

# Setup the execution environment
FROM base as run
# installing packages
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
  && DEBIAN_FRONTEND=noninteractive apt-get -qy dist-upgrade \
  && DEBIAN_FRONTEND=noninteractive apt-get -qy install -y --no-install-recommends \
  && apt-get update && apt-get install -y \
  lsb-release \
  && curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg \
  && echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list \
  redis-stack-server \
  dnsutils \
  libsctp1 \
  && DEBIAN_FRONTEND=noninteractive apt-get -qy clean \
  && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY ${FILES_DIR}/redis-stack.conf /etc/

############### Install 5g Files ###############

COPY ${FILES_DIR}/udm.cfg /usr/pcn/snapshots/

############### Copy startup script to Image #############
COPY ${FILES_DIR}/startup.sh /home/pcn/start/startup.sh
RUN chmod -R +x /home/pcn/start/startup.sh

COPY ${PCN_BIN}/main /usr/pcn/
RUN ln -s /usr/pcn/main /usr/pcn/ecxcli
WORKDIR /usr/pcn
ENTRYPOINT ["/home/pcn/start/startup.sh"]
,,,