Files
houston-be/Dockerfile.houston
Mohit Kumar Gupta fe66e364f8 NTP-67949 | Mohit | bug fix for in dockerfile for wiz (#489)
* NTP-67949 | Mohit | bug fix for log dropping

* NTP-67949 | Mohit | bug fix for in dockerfile for wiz
2025-05-27 11:53:43 +05:30

33 lines
1.2 KiB
Docker

ARG GOLANG_TAG=193044292705.dkr.ecr.ap-south-1.amazonaws.com/common/golang:1.23.8
# To run locally, use
#ARG GOLANG_TAG=registry.cmd.navi-tech.in/common/golang:1.23.8
FROM ${GOLANG_TAG} as builder
RUN mkdir -p /build
WORKDIR /build
COPY . /build
RUN /bin/bash -c "make build"
FROM ${GOLANG_TAG}
# if we want to install via apt
#USER root
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN apt-get update
RUN apt-get -y install libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4
RUN apt-get -y install xvfb gtk2-engines-pixbuf
# RUN apt-get -y install xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable
RUN apt-get -y install google-chrome-stable
# drop back to the regular jenkins user - good practice
RUN mkdir -p /usr/local
WORKDIR /usr/local
RUN mkdir -p houstonTmp
COPY --from=0 /build/houston /usr/local/
COPY --from=0 /build/config/application.properties /usr/local/config/
RUN adduser --system --uid 4000 --disabled-password app-user && chown -R 4000:4000 /usr/local && chmod -R g+w /usr/local/
USER 4000
CMD /bin/bash -c "./houston"