2022-12-12 20:56:14 +00:00
|
|
|
# pull official node image
|
|
|
|
FROM harbor.k-space.ee/docker.io/library/node:19
|
|
|
|
|
|
|
|
# define /app as working directory
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# copy package.json and package-lock.json to /app
|
|
|
|
COPY package.json /app
|
|
|
|
# COPY bun.lockb /app
|
|
|
|
|
|
|
|
# install node dependencies
|
|
|
|
# RUN bun install
|
|
|
|
RUN yarn install --production
|
|
|
|
COPY . /app
|
|
|
|
|
|
|
|
# bun install doesnt work in Docker for some reason: https://github.com/oven-sh/bun/issues/1590
|
|
|
|
FROM jarredsumner/bun:0.2.0 AS run
|
|
|
|
COPY --from=0 /app /app
|
2022-12-13 10:55:13 +00:00
|
|
|
WORKDIR /app
|
2022-12-12 20:56:14 +00:00
|
|
|
ENTRYPOINT bun run index.ts
|