Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:latest as builder

WORKDIR /home/app
COPY ./fluux-messenger/package.json ./fluux-messenger/package-lock.json ./

RUN npm install --frozen-lockfile

COPY ./fluux-messenger/ /home/app
RUN npm run build

FROM nginx:alpine AS production

# Copy the production build artifacts from the build stage
COPY --from=builder /home/app/apps/fluux/dist /usr/share/nginx/html

# Expose the default NGINX port
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
ejabberd:
image: ghcr.io/processone/ecs
container_name: ejabberd
volumes:
- ./conf/ejabberd.yml:/opt/ejabberd/conf/ejabberd.yml
- ./database:/opt/ejabberd/database
- ./logs:/opt/ejabberd/logs
- ./upload:/opt/ejabberd/upload
fluux-messenger:
build: .
container_name: fluux-messenger
working_dir: /home/app
restart: unless-stopped