rudeshark.net/Dockerfile
Jae Lo Presti b4e9b579dd
Dockerfile: path builds producing brick image
Signed-off-by: cutestnekoaqua <waterdev@galaxycrow.de>
2023-01-08 19:15:15 +01:00

28 lines
507 B
Docker

FROM node:18-alpine
ENV YARN_CHECKSUM_BEHAVIOR=update
ARG NODE_ENV=production
WORKDIR /calckey
# Copy Files
COPY . ./
# Install Dependencies
RUN apk update
RUN apk add git ffmpeg tini alpine-sdk python3
# Configure corepack and yarn
RUN corepack enable
RUN yarn set version berry
RUN yarn install --immutable
RUN yarn plugin import workspace-tools
# Install Dependencies
RUN yarn run build
# Remove git files
RUN rm -rf .git
ENTRYPOINT [ "/sbin/tini", "--" ]
CMD [ "yarn", "run", "migrateandstart" ]