From 8a4faa616edb65ae58402afaff1976472c32bd09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sat, 29 Feb 2020 21:02:48 +0100 Subject: [PATCH] Fix components imports --- .dockerignore | 3 +++ Dockerfile | 4 +++- src/molecules/Switcher.svelte | 2 +- src/routes/location/[country]/[location].svelte | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..b76334d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git +*Dockerfile* +.env \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index bc58982..2adabc2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,10 @@ FROM node:current-alpine WORKDIR /var/www +CMD ls -la + # Copy all build and modules -COPY package.json dist . +COPY . . # Open port EXPOSE 3000 diff --git a/src/molecules/Switcher.svelte b/src/molecules/Switcher.svelte index 00b92e4..2ff4e62 100644 --- a/src/molecules/Switcher.svelte +++ b/src/molecules/Switcher.svelte @@ -4,7 +4,7 @@ } from '../store' // Components - import IconGlobe from '../atoms/iconGlobe' + import IconGlobe from '../atoms/IconGlobe' // Props export let type = '' diff --git a/src/routes/location/[country]/[location].svelte b/src/routes/location/[country]/[location].svelte index ad38d13..94c68c8 100644 --- a/src/routes/location/[country]/[location].svelte +++ b/src/routes/location/[country]/[location].svelte @@ -34,8 +34,8 @@ dayjs.extend(relativeTime) // Components - import IconGlobe from '../../../atoms/iconGlobe' - import IconGlobeSmall from '../../../atoms/iconGlobeSmall' + import IconGlobe from '../../../atoms/IconGlobe' + import IconGlobeSmall from '../../../atoms/IconGlobeSmall' import LinkChange from '../../../atoms/LinkChange' import ToggleLayout from '../../../atoms/ToggleLayout' import Photo from '../../../molecules/Photo'