18 lines
573 B
Docker
18 lines
573 B
Docker
FROM node:lts-alpine
|
|
RUN apk add --no-cache --virtual=build-dependencies build-base git python3-dev && \
|
|
apk add --no-cache yarn
|
|
USER node
|
|
WORKDIR /var/opt/hardlounge-src
|
|
ENV THELOUNGE_HOME /var/opt/hardlounge
|
|
COPY package.json yarn.lock .
|
|
RUN yarn install
|
|
COPY . .
|
|
RUN NODE_ENV=production yarn build && \
|
|
yarn link && \
|
|
yarn --non-interactive cache clean && \
|
|
ln -s /var/opt/hardlounge-src/index.js /var/opt/hardlounge-src/hardlounge
|
|
USER root
|
|
RUN apk del --purge build-dependencies
|
|
USER node
|
|
EXPOSE 9000
|
|
CMD ["/var/opt/hardlounge-src/hardlounge", "start"] |