Created
October 7, 2018 11:26
-
-
Save daliborgogic/9dd760af8fdefac5d3bdf7137beac73a to your computer and use it in GitHub Desktop.
Docker s3cmd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mhart/alpine-node:10.10.0 | |
WORKDIR /app | |
COPY . . | |
RUN apk update && \ | |
apk add --no-cache python py-pip py-setuptools git ca-certificates && \ | |
git clone https://github.com/s3tools/s3cmd.git /tmp/s3cmd && \ | |
cd /tmp/s3cmd && \ | |
python setup.py install && \ | |
apk del git && \ | |
rm -rf /tmp/s3cmd | |
RUN npm ci && \ | |
npm run deploy && \ | |
npm ci && \ | |
npm run static | |
FROM mhart/alpine-node:base-10.10.0 | |
WORKDIR /app | |
ENV NODE_ENV production | |
COPY package.json . | |
COPY index.js . | |
COPY app.html . | |
COPY nuxt.config.js . | |
COPY --from=0 ./app/node_modules ./node_modules | |
COPY --from=0 ./app/.nuxt ./.nuxt | |
COPY --from=0 ./app/static ./static | |
EXPOSE 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment