Files
workavia-drive/tdrive/docker/tdrive-nextcloud-migration/Dockerfile
T
Anton Shepilov 8efe4ec194 🌟 Data migration tool from nextcloud (#299)
- created server configuration
 - implemented downloading files from nextcloud to a local directory
 - build of the docker image added to the GutHub workflow
 - Twake client added
 - Creating user in Twake Drive from ldap
 - Ldap client with ldapsearch(TODO make it work with ldapjs)
 - Jest debug tests
2023-12-14 22:19:15 +01:00

28 lines
845 B
Docker

# Use an official Node.js runtime as the base image
FROM node:bullseye
RUN echo "deb http://ppa.launchpad.net/nextcloud-devs/client/ubuntu zesty main" >> /etc/apt/sources.list.d/nextcloud-client.list
RUN echo "deb-src http://ppa.launchpad.net/nextcloud-devs/client/ubuntu zesty main" >> /etc/apt/sources.list.d/nextcloud-client.list
RUN apt install dirmngr
RUN apt-key adv --recv-key --keyserver keyserver.ubuntu.com AD3DD469
RUN apt update
RUN apt install --assume-yes nextcloud-desktop-cmd
RUN apt install ldap-utils
# Set the working directory inside the container
WORKDIR /usr/src/app
# Copy app
COPY backend/utils/nextcloud-migration/src/** ./src/
COPY backend/utils/nextcloud-migration/.nvmrc ./
COPY backend/utils/nextcloud-migration/*.json ./
RUN npm i && npm run build
# Run the Node.js application
CMD ["npm", "run", "start"]