Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions deploy/cicd/docker/Dockerfile-osctrl-admin
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,25 @@ RUN useradd -ms /usr/sbin/nologin osctrl-${COMPONENT}
RUN mkdir -p /opt/osctrl/bin \
/opt/osctrl/config \
/opt/osctrl/tmpl_admin/components \
/opt/osctrl/static \
/opt/osctrl/static/css \
/opt/osctrl/static/js \
/opt/osctrl/static/fonts \
/opt/osctrl/static/img \
/opt/osctrl/data \
/opt/osctrl/carved_files && \
chown -R osctrl-${COMPONENT}:osctrl-${COMPONENT} /opt/osctrl

COPY osctrl-${COMPONENT}-${GOOS}-${GOARCH} /opt/osctrl/bin/osctrl-${COMPONENT}
RUN chmod 0755 /opt/osctrl/bin/osctrl-${COMPONENT}

# GoReleaser extra_files provides these paths in the docker build context.
COPY templates/ /opt/osctrl/tmpl_admin
COPY static/ /opt/osctrl/static
COPY data/*.json /opt/osctrl/data/
# GoReleaser extra_files are flattened in the docker build context.
COPY *.html /opt/osctrl/tmpl_admin/
COPY page-*.html /opt/osctrl/tmpl_admin/components/
COPY *.css /opt/osctrl/static/css/
COPY *.js /opt/osctrl/static/js/
COPY *.eot *.ttf *.woff *.woff2 /opt/osctrl/static/fonts/
COPY *.png *.svg /opt/osctrl/static/img/
COPY *.json /opt/osctrl/data/

USER osctrl-${COMPONENT}
WORKDIR /opt/osctrl
Expand Down
Loading