Compare commits
4 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
f532d39e5a | |
|
|
cb636d0201 | |
|
|
17a4590a6e | |
|
|
52f5426e5a |
|
|
@ -0,0 +1,9 @@
|
||||||
|
.git
|
||||||
|
.dockerignore
|
||||||
|
Dockerfile
|
||||||
|
node_modules
|
||||||
|
pacosako.db
|
||||||
|
data/
|
||||||
|
.*.swp
|
||||||
|
.*.swo
|
||||||
|
*~
|
||||||
20
Dockerfile
20
Dockerfile
|
|
@ -1,13 +1,17 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM node:16-alpine
|
FROM node:16-alpine3.13 AS base
|
||||||
MAINTAINER Jesse McDonald <nybble41@gmail.com>
|
|
||||||
WORKDIR /app
|
|
||||||
RUN apk add --no-cache python2 make gcc g++ musl-dev
|
|
||||||
COPY . .
|
|
||||||
RUN yarn install --production
|
|
||||||
|
|
||||||
FROM node:16-alpine
|
FROM base AS builder
|
||||||
MAINTAINER Jesse McDonald <nybble41@gmail.com>
|
MAINTAINER Jesse McDonald <nybble41@gmail.com>
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=0 /app .
|
RUN apk add --no-cache python2 python3 make gcc g++ musl-dev
|
||||||
|
COPY ["package.json", "package-lock.json*", "."]
|
||||||
|
RUN yarn install --production
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
FROM base
|
||||||
|
MAINTAINER Jesse McDonald <nybble41@gmail.com>
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=builder /app .
|
||||||
|
ENV PORT=80
|
||||||
CMD ["node", "./server.js"]
|
CMD ["node", "./server.js"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue