-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0d19e0
commit adede29
Showing
36 changed files
with
66 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ package-lock.json | |
coverage/ | ||
public/ | ||
dist/ | ||
|
||
/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
FROM node:21-alpine | ||
|
||
ARG THELOUNGE_VERSION=4.4.3 | ||
FROM node:21-alpine AS build | ||
|
||
ENV NODE_ENV production | ||
|
||
ENV THELOUNGE_HOME "/srv/config" | ||
COPY config/ /srv/config | ||
|
||
# Expose HTTP. | ||
ENV PORT 9000 | ||
EXPOSE ${PORT} | ||
WORKDIR /srv | ||
|
||
COPY . /srv | ||
|
||
ENTRYPOINT ["/srv/docker-entrypoint.sh"] | ||
CMD ["/srv/index.js", "start"] | ||
RUN set -eux; \ | ||
apk --update --no-cache --virtual build-deps add python3 build-base git; \ | ||
ln -sf python3 /usr/bin/python; \ | ||
yarn --non-interactive install; \ | ||
yarn run build | ||
|
||
FROM node:21-alpine AS app | ||
|
||
ENV NODE_ENV production | ||
ENV THELOUNGE_HOME "/srv/config" | ||
|
||
CMD ["/srv/index.js", "start"] | ||
ENTRYPOINT ["sh"] | ||
EXPOSE 9000 | ||
USER node | ||
WORKDIR /srv | ||
COPY . /srv | ||
|
||
# Install thelounge. | ||
RUN apk --update --no-cache --virtual build-deps add python3 build-base git && \ | ||
ln -sf python3 /usr/bin/python && \ | ||
yarn --non-interactive install && \ | ||
yarn --non-interactive cache clean && \ | ||
yarn build && \ | ||
apk del --purge build-deps && \ | ||
rm -rf /root/.cache /tmp /usr/bin/python \ | ||
COPY --from=build --chown=node:node /srv /srv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.