2023-10-05 08:52:01 +00:00
|
|
|
FROM node:lts-alpine
|
2023-10-05 09:27:17 +00:00
|
|
|
RUN apk add --no-cache --virtual=build-dependencies build-base git python3-dev && \
|
|
|
|
apk add --no-cache yarn
|
2023-10-05 08:52:01 +00:00
|
|
|
USER node
|
2023-10-09 10:28:14 +00:00
|
|
|
WORKDIR /var/opt/hardlounge-src
|
|
|
|
ENV THELOUNGE_HOME /var/opt/hardlounge
|
2023-10-05 11:28:00 +00:00
|
|
|
COPY . .
|
2023-10-09 10:28:14 +00:00
|
|
|
#RUN git clone https://git.supernets.org/supernets/hardlounge.git --depth 1 .
|
2023-10-05 09:27:17 +00:00
|
|
|
RUN yarn install && \
|
|
|
|
NODE_ENV=production yarn build && \
|
|
|
|
yarn link && \
|
|
|
|
yarn --non-interactive cache clean && \
|
2023-10-09 10:28:14 +00:00
|
|
|
ln -s /var/opt/hardlounge-src/index.js /var/opt/hardlounge-src/hardlounge
|
2023-10-05 09:27:17 +00:00
|
|
|
USER root
|
|
|
|
RUN apk del --purge build-dependencies
|
|
|
|
USER node
|
2023-10-05 08:52:01 +00:00
|
|
|
EXPOSE 9000
|
2023-10-09 10:28:14 +00:00
|
|
|
CMD ["/var/opt/hardlounge-src/hardlounge", "start"]
|