Skip to content

Support offical docker image #341

@aliuq

Description

@aliuq

Clear and concise description of the problem

Deploy anywhere using docker to avoid network issues

Suggested solution

I built an image and there seems to be no problem accessing it

Dockerfile

FROM node:20.16.0-alpine3.20 AS build

WORKDIR /app
COPY . .
RUN corepack enable && corepack prepare --activate
RUN pnpm install && pnpm run build

FROM aliuq/nginx:vue

ENV TZ=Asia/Shanghai
ENV NODE_ENV=production

WORKDIR /app

COPY --from=build /app/dist /app

CMD ["nginx", "-g", "daemon off;"]
EXPOSE 80

Test command

docker run --rm -p 8080:80 --name icones aliuq/icones:latest

then visit http://localhost:8080

Alternative

No response

Additional context

No response

Validations

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