Fixed Docker not building when yarn.lock and .env not present

This commit is contained in:
Nikurasu 2023-01-20 22:17:21 +01:00
parent 95333f1033
commit 3d6ae756a6

View file

@ -2,9 +2,7 @@ FROM node:lts-alpine
LABEL maintainer="nikurasu_tan publicmail@nikurasu.gay" LABEL maintainer="nikurasu_tan publicmail@nikurasu.gay"
WORKDIR /app WORKDIR /app
COPY src/ ./src COPY src/ ./src
COPY package.json ./ COPY package.json yarn.loc[k] .en[v] ./
COPY yarn.lock ./
COPY .env ./.env
COPY assets /assets COPY assets /assets
RUN mv /assets/config/config.yml.example /assets/config/config.yml RUN mv /assets/config/config.yml.example /assets/config/config.yml
COPY dev/shell/entrypoint.sh /entrypoint.sh COPY dev/shell/entrypoint.sh /entrypoint.sh