Files
houston-be/Dockerfile.houston
Amitesh Vijaykumar Magar 36d07c7ce2 NTP-42029 | API for Houston-UI (#482)
* NTP-42029 | Created a reverse mapper for UI.

* NTP-42029 | Comment resolution.

* NTP-42029 | external team label change.

* NTP-42029 | Updated mock.

* NTP-42029 | Upgraded dependecy versions in go.

* NTP-42029 | Update go.mod

* NTP-42029 | Changes in mod file.

* NTP-42029 | Upgraded GO version in Dockerfile.

* NTP-42029 | Correcting version of GoLang used.

* NTP-42029 | Removed breaking fonts installation from dockerfile.

* NTP-42029 | Last minute changes.
2025-02-27 15:51:13 +05:30

33 lines
1.2 KiB
Docker

#ARG GOLANG_TAG=193044292705.dkr.ecr.ap-south-1.amazonaws.com/common/golang:1.23.3
# To run locally, use
ARG GOLANG_TAG=registry.cmd.navi-tech.in/common/golang:1.23.3
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"