Compare commits

..

No commits in common. "master" and "v0.3.4" have entirely different histories.

2 changed files with 5 additions and 18 deletions

View File

@ -1,9 +0,0 @@
.git
.dockerignore
Dockerfile
node_modules
pacosako.db
data/
.*.swp
.*.swo
*~

View File

@ -1,17 +1,13 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM node:16-alpine3.13 AS base FROM node:16-alpine
FROM base AS builder
MAINTAINER Jesse McDonald <nybble41@gmail.com> MAINTAINER Jesse McDonald <nybble41@gmail.com>
WORKDIR /app WORKDIR /app
RUN apk add --no-cache python2 python3 make gcc g++ musl-dev RUN apk add --no-cache python2 make gcc g++ musl-dev
COPY ["package.json", "package-lock.json*", "."]
RUN yarn install --production
COPY . . COPY . .
RUN yarn install --production
FROM base FROM node:16-alpine
MAINTAINER Jesse McDonald <nybble41@gmail.com> MAINTAINER Jesse McDonald <nybble41@gmail.com>
WORKDIR /app WORKDIR /app
COPY --from=builder /app . COPY --from=0 /app .
ENV PORT=80
CMD ["node", "./server.js"] CMD ["node", "./server.js"]