Created
December 17, 2017 13:01
-
-
Save gabber12/b8b82a364054124d0283833cd4994de3 to your computer and use it in GitHub Desktop.
Sample Docker file for vuejs applications
This file contains 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
# Start with node environment. | |
# * Download packages | |
# * Build application | |
FROM node:6 as builder | |
COPY . /build | |
WORKDIR /build | |
RUN npm install && npm run build | |
FROM nginx | |
# Copy the distribution files to be served by nginx | |
COPY --from=builder /build/dist /usr/share/nginx/html | |
ARG ENV | |
EXPOSE 80 | |
COPY /nginx/${ENV}.conf /etc/nginx/conf.d/default.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment