Follow

ASF 配好了,附一份ASF-ui的Dockerfile

FROM node:16-alpine
RUN apk add --no-cache git
RUN npm install -g http-server
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run deploy

EXPOSE 8080
CMD [ "http-server", "-P http://localhost:8080?", "dist" ]

全栈docker-compose:

version: '3.9'

services:
  app:
    image: justarchi/archisteamfarm:latest
    restart: always
    ports:
      - 1242:1242
    volumes:
      - ./config:/app/config

  ui:
    image: mashirozx/asf-ui:latest
    restart: always
    ports:
      - 1243:8080

Nginx 就不用我教了吧 :ac_classic13:

· · Web · 1 · 0 · 1
Sign in to participate in the conversation
小森林

每个人都有属于自己的一片森林,也许我们从来不曾走过,但它一直在那里,总会在那里。迷失的人迷失了,相逢的人会再相逢。愿这里,成为属于你的小森林。