netgate-switch/Dockerfile
2024-08-05 21:27:53 +08:00

11 lines
239 B
Docker

FROM oven/bun:latest
WORKDIR /usr/src/app
MKDIR /config
COPY ./config.json /config
COPY . .
RUN bun install --frozen-lockfile --production
ENV NODE_ENV=production
EXPOSE 7000/tcp
VOLUME [ "/config"]
ENTRYPOINT [ "bun", "run", "index.ts" ]