Skip to content

Containarized app #123

@larus-argentatus-hftp

Description

@larus-argentatus-hftp

Hello there :)

I am working on trying to build a container for this application.

This is the containerfile:

FROM node:22 AS builder

WORKDIR /app
RUN git clone --branch main https://github.com/oatear/cider.git .

WORKDIR /app/cider-app
RUN npm install
RUN npm install -g @angular/cli
RUN ng build --configuration=production
RUN cp dist/cider/browser/index.html dist/cider/browser/404.html


WORKDIR /
FROM nginx:latest
COPY --from=builder /app/cider-app/dist/cider/browser /usr/share/nginx/html
EXPOSE 80

You can build (and then run) by using:

  1. podman build . -t cider;
  2. podman run --rm --replace --name cider -p 8080:80 localhost/cider:latest;
  3. Access localhost:8080 and see cider;

I would like to mount a volume to this, where I can store everything (similar to the offline app structure) but due to the different folder structures from the local app to the static website I am struggling. (This is in order to be able to collaborate with others in the same network as me).

I hope you can help me out :)

PS: Thank you for developing this application, it works really well and has all of the features we needed for a small project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions